fix: print_err not being defined
This commit is contained in:
parent
60adbfbdf3
commit
81ee46e41d
@ -17,6 +17,12 @@ local function link_to(path)
|
|||||||
return luv.fs_readlink(path) or ''
|
return luv.fs_readlink(path) or ''
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function print_err(err)
|
||||||
|
if err then
|
||||||
|
api.nvim_err_writeln(err)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
local function system(v)
|
local function system(v)
|
||||||
print_err(api.nvim_call_function('system', { v }))
|
print_err(api.nvim_call_function('system', { v }))
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user