Skip to content

Commit

Permalink
That'll teach me to edit a file while editing a commit msg..
Browse files Browse the repository at this point in the history
  • Loading branch information
c-blake committed Aug 18, 2023
1 parent 09776ee commit 4d1c88d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4d1c88d

Please sign in to comment.