-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Unimpaired movements cause display to scroll unnecessarily #6177
Comments
This actually is on purpose as we manually call That being said we are not consistent here (anything TS based or |
Ah, this looks like an oversight by me in #4713. I agree with
I think that |
(Plus you can accomplish the current behavior by using the |
Remove `align_view` calls from `goto_*_diag` as per issue #6177
Shouldn't we actually use the same code we use for jumping to search results? |
Remove `align_view` calls from `goto_*_diag` as per issue helix-editor#6177
Summary
Sometimes I want to jump to a nearby diagnostic, maybe even on the same line my cursor is currently on.
Sometimes this causes the display to scroll up or down, which is jarring.
If the diagnostic is already visible, we shouldn't scroll (except as needed to respect
scrolloff
).Navigating to a diagnostic on the same line as the cursor certainly shouldn't scroll.
https://asciinema.org/a/1HAs9gPmEAaCrkpBJ2zSloC9X
Reproduction Steps
I tried this:
hx example.cpp
40j
]d
I expected this to happen:
Cursor moves to diagnostic, display stays at same scroll level.
Instead, this happened:
Cursor moves to diagnostic, display scrolls down.
Helix log
~/.cache/helix/helix.log
Platform
Linux
Terminal Emulator
st 0.8.5
Helix Version
22.12-294-g6494fc1d
The text was updated successfully, but these errors were encountered: