Skip to content

Commit

Permalink
fix: cursor doesn't jump when opening tree
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed May 14, 2022
1 parent f8d2ea1 commit e5a1965
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/aerial/tree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ M.edit_tree_node = function(bufdata, action, index, opts)
do_action(child)
end
end
return item
elseif action == "close" then
did_update = did_update or not is_collapsed
bufdata:set_collapsed(item, true)
Expand Down

0 comments on commit e5a1965

Please sign in to comment.