-
Notifications
You must be signed in to change notification settings - Fork 272
fix(renderer): save cursor & window pos on CursorMoved #1838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
After this commit, whenever i open the neo-tree, the cursor position is now always at the top of the neo-tree's window and not on the name of the file that is currently opened where i initiate the open command. |
|
Hey there -- I think this is still not quite fixed. Without
the cursor appears back at the top of the file explorer, not where you left it. I tried with 3.35 and it worked just fine, but with 3.35.1 (the release where this PR was merged) I got this behaviour. It's the same on the latest release as well. If this is the intended behaviour, feel free to ignore this :) Cheers |
See [this PR](nvim-neo-tree/neo-tree.nvim#1838)
It was not intended behavior. thanks for reporting, should be fixed by the above PR. |
|
Yup sorted! Thanks for getting that fixed so quickly |

Closes #1548 (hopefully)
Basically instead of saving before/after render we just forcibly save a new position every time the cursor moves, which makes the saved position much more up-to-date.