-
-
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
Cursor jumps on :reload-all
#4884
Comments
I am not able to replicate this. Can you maybe create an example with a few files where this happens? Or maybe a repo that you were using? |
This happens when I edit Go files. I use I use Helix at work so I don’t currently have any example files or repos to share. I’ll try putting something together that triggers this that I can share. |
awesome, thanks ! |
I checked out https://github.com/GoogleCloudPlatform/cloud-sql-proxy repo in order to reproduce this bug.
Where to move the cursor in step 5. and what happens at step 7. seem a bit random to me. I tested this in kitty and iTerm2 and I get the same behaviour in both. Let me know if you need any more info. config.toml
languages.toml
|
@mchlstckl I'm unable to replicate this on linux 🤔 @the-mikedavis any ideas? |
I wonder if this stems from formatting? |
You need a short enough terminal size to see the jump. The problem is calling We should only call |
@mchlstckl @the-mikedavis can you please test #4901 and let me know if you can still replicate the behavior? I wasn't able to replicate locally but I think this may fix it according to Mike's explanation |
I checked out your branch and installed |
Summary
When I do
:reload-all
, the content of the window jump. Sometimes the cursor is positioned at the top of what looks like a blank buffer, but scrolling up reveals the contents of the file.Note that the file I'm looking at has not changed.
Reproduction Steps
I tried this:
hx
:reload-all
I expected this to happen:
Contents to be reloaded from disk. Cursor remains in current position.
Instead, this happened:
Contents reloaded from disk. Cursor jumps to random(?) position.
Helix log
~/.cache/helix/helix.log
Platform
macOS
Terminal Emulator
kitty
Helix Version
helix 22.08.1 (e6dad96)
The text was updated successfully, but these errors were encountered: