bugfix -p nil check #241
This commit is contained in:
parent
df1f43ef55
commit
c6b3c061cd
@ -259,7 +259,12 @@ outline = function(...)
|
|||||||
path = vfn.fnamemodify(path, ':p')
|
path = vfn.fnamemodify(path, ':p')
|
||||||
|
|
||||||
if arg == '-p' then
|
if arg == '-p' then
|
||||||
path = select(2, ...)
|
local pkg = select(2, ...)
|
||||||
|
if pkg ~= nil then
|
||||||
|
path = pkg
|
||||||
|
else
|
||||||
|
vim.notify('no package provided')
|
||||||
|
end
|
||||||
else
|
else
|
||||||
path = '.' .. util.sep() .. '...' -- how about window?
|
path = '.' .. util.sep() .. '...' -- how about window?
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user