Skip to content

Commit 90dcf42

Browse files
authored
fix(#1533): make toggle_mark ignore non-togglable nodes. (#1534)
1 parent 049cdd3 commit 90dcf42

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/nvim-tree/marks/init.lua

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ local function remove_mark(node)
1717
end
1818

1919
function M.toggle_mark(node)
20+
if node.absolute_path == nil then
21+
return
22+
end
23+
2024
if M.get_mark(node) then
2125
remove_mark(node)
2226
else

0 commit comments

Comments
 (0)