bugfix
This commit is contained in:
parent
38cdbcd29e
commit
731c8c13b6
|
@ -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
|
||||
|
|
Reference in New Issue