refactor: make sure open is a boolean

This commit is contained in:
Rami Elwan 2025-05-18 09:59:19 +02:00
parent df1f535e20
commit a731a81728

View File

@ -60,7 +60,7 @@ function M.fn(node, opts)
:applier(function(n)
local dir = n:as(DirectoryNode)
if dir then
dir.open = opts.keep_buffers and matches(dir.absolute_path)
dir.open = opts.keep_buffers == true and matches(dir.absolute_path)
end
end)
:recursor(function(n)