snailed
/
taolf
Archived
2
0
Fork 0

Fix: Cannot open files with Space in its path

This was due to the path string not being enclosed in quotes so that it
is escaped by the terminal.
This commit is contained in:
Gilberto Valadez 2023-08-23 23:36:09 -06:00
parent 15d173ca11
commit 969f25f9a4
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ function Lf:__set_cmd_wrapper()
-- command lf -command '$printf $id > '"$fid"'' -last-dir-path="$tmp" "$@"
self.term.cmd =
([[%s -command='$printf $id > %s' -last-dir-path='%s' -selection-path='%s' %s]])
([[%s -command='$printf $id > %s' -last-dir-path='%s' -selection-path='%s' '%s']])
:format(self.term.cmd, self.tmp_id, self.tmp_lastdir, self.tmp_sel, open_on)
return self
end