mirror of
https://github.com/stevearc/aerial.nvim
synced 2024-09-16 14:34:08 +02:00
fix: only allow collapsing leaf nodes if link_tree_to_folds = true (#257)
This commit is contained in:
parent
2abd491522
commit
5c5b355f29
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ function BufData.new(bufnr)
|
|||
collapse_level = 99,
|
||||
}
|
||||
-- cache the evaluation of managing folds
|
||||
new.manage_folds = config.manage_folds(bufnr)
|
||||
new.manage_folds = config.manage_folds(bufnr) and config.link_tree_to_folds
|
||||
setmetatable(new, { __index = BufData })
|
||||
return new
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue