fix: print_err not being defined

This commit is contained in:
kiyan42 2020-04-25 16:26:29 +02:00
parent 60adbfbdf3
commit 81ee46e41d

View File

@ -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