Skip to content

Commit 81ee46e

Browse files
committed
fix: print_err not being defined
1 parent 60adbfb commit 81ee46e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lua/lib/fs.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ local function link_to(path)
1717
return luv.fs_readlink(path) or ''
1818
end
1919

20+
local function print_err(err)
21+
if err then
22+
api.nvim_err_writeln(err)
23+
end
24+
end
25+
2026
local function system(v)
2127
print_err(api.nvim_call_function('system', { v }))
2228
end

0 commit comments

Comments
 (0)