-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(renderer): use winsaveview/winrestview to restore cursor as well
We can use `lnum` from winsaveview to set our cursor and not depend on M.follow_focus and state.tree.get_node (which can be nil sometimes). This way we don't trigger M.follow_focus window centering algorithm when expanding or closing nodes.
- Loading branch information
1 parent
42a079f
commit 0acea00
Showing
1 changed file
with
9 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters