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 929189d commit b257b78Copy full SHA for b257b78
1 file changed
lua/nvim-tree/actions/fs/create-file.lua
@@ -12,7 +12,7 @@ local M = {}
12
local function create_and_notify(file)
13
events._dispatch_will_create_file(file)
14
local ok, fd = pcall(vim.loop.fs_open, file, "w", 420)
15
- if not ok or type(fd) ~= "number" then
+ if not ok then
16
notify.error("Couldn't create file " .. notify.render_path(file))
17
return
18
end
0 commit comments