Skip to content

Commit 630305c

Browse files
committed
fix(executable): prevent nil extensions in executable check
fix on windows fixes #1444
1 parent c964fa2 commit 630305c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/explorer/reload.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function M.reload(node, status)
6464
end
6565
local n = nodes_by_path[abs]
6666
if n then
67-
n.executable = builders.is_executable(abs, n.extension)
67+
n.executable = builders.is_executable(abs, n.extension or "")
6868
end
6969
end
7070
end

0 commit comments

Comments
 (0)