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
Preserve cursor position on reload #969
Comments
Ideally a Scintilla undo would restore caret position itself. But yeah, would be nice even if only for reload. |
Interestingly if using split-window plugin with the same file in both panes, on reload one pane goes to the start of the file and the other stays put :) |
Is this still an issue? If I reload a document the cursor stays where it is (only the visible area of the editor window changes slightly). |
Hmmm, seems to work, but I can't find what fixed it, must have a bad commit message. Will close for now, can always re-open later if its still broken. |
It was fixed in ab52956 at one point, but that was quite some time before this Issue was opened. |
Yeah, more likely somewhere around here |
Currently on reload the cursor moves to the start, causing a scroll to the start.
The cursor position should be saved and restored if possible (ie if the file is still longer than the position).
Even better would be for the screen position to remain the same, but I'm not sure Scintilla supports that.
My personal use-case is reloading test logs where I want the cursor to go to the previously failing test output so I can check I fixed it, but there are others as well.
The text was updated successfully, but these errors were encountered: