From 4d1c88d1ba18a56509d1692549657e8716ffee6e Mon Sep 17 00:00:00 2001 From: Charles Blake Date: Fri, 18 Aug 2023 06:37:35 -0400 Subject: [PATCH] That'll teach me to edit a file while editing a commit msg.. --- lc.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lc.nim b/lc.nim index 0cc5d84..298d19c 100644 --- a/lc.nim +++ b/lc.nim @@ -800,8 +800,8 @@ proc fin*(cf: var LsCf, cl0: seq[string] = @[], cl1: seq[string] = @[], cf.wrote = false cf.cl0 = cl0 cf.cl1 = cl1 - try : cf.cwd = getCurrentDir() - except Ce: discard # quit "PWD deleted" # quit nicer, but not what GNU ls does + try : cf.cwd = getCurrentDir() # Caller can validly `lc` absolute paths + except Ce: discard #.. from inside a deleted directory. template x(e, d): untyped = cast[ExtFmt](if e.len > 0: e.loadSym else: cast[pointer](d)) cf.ext1c = x(cf.ext1, efRef)