snailed
/
taolf
Archived
2
0
Fork 0
This commit is contained in:
Luca Bilke 2024-01-29 11:56:20 +01:00
parent 38cdbcd29e
commit 731c8c13b6
1 changed files with 2 additions and 1 deletions

View File

@ -109,6 +109,7 @@ function Lf:__set_cmd_wrapper()
self.tmp_lastdir = os.tmpname()
self.tmp_id = os.tmpname()
-- FIX: non existing file in buffer causes an error message
local selection = self.term.dir
if fn.fnamemodify(self.curfile, ":h") == self.term.dir then
selection = self.curfile
@ -207,7 +208,7 @@ function Lf:__set_argv()
local args = {}
for _, arg in ipairs(fn.argv()) do
if api.nvim_buf_is_loaded(fn.bufnr(arg)) then
table.insert(args, uv.fs_realpath(arg))
table.insert(args, uv.fs_realpath(arg) or "")
end
end
self.arglist = args