Skip to content

Commit a731a81

Browse files
committed
refactor: make sure open is a boolean
1 parent df1f535 commit a731a81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/actions/tree/modifiers/collapse-all.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function M.fn(node, opts)
6060
:applier(function(n)
6161
local dir = n:as(DirectoryNode)
6262
if dir then
63-
dir.open = opts.keep_buffers and matches(dir.absolute_path)
63+
dir.open = opts.keep_buffers == true and matches(dir.absolute_path)
6464
end
6565
end)
6666
:recursor(function(n)

0 commit comments

Comments
 (0)