We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fefa335 commit b01dc99Copy full SHA for b01dc99
lua/nvim-tree/utils.lua
@@ -26,6 +26,7 @@ function M.read_file(path)
26
end
27
local stat = vim.loop.fs_fstat(fd)
28
if not stat then
29
+ vim.loop.fs_close(fd)
30
return ""
31
32
local data = vim.loop.fs_read(fd, stat.size, 0)
0 commit comments