-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Rendering error, cursor moves below the text as you type. #5782
Comments
This is actually looks like a bug I fixed in the softwrap branch a while ago. I can't reproduce this on master but from the helix version you posted it looks like you are still using a 2 weeks old version of the softwrap branch and not the version that actually got merged. I tried really hard to reproduce this and I am fairly certain my fix for this was correct. I personally use almost the exact same settings and haven't noticed this problem ever since I fixed this bug. If you find any file for which this problem occurs on master, I would highly appreciate if you could upload a copy. |
I don't see how it is an old branch as I only did a git pull yesterday and was using a new feature that was only just merged: #4571 . I checked again and got:
but I am on the master branch:
So I updated, pulling in the one new commit that has appeared, here is the output:
It still says Helix is on the same commit even after an update... makes no sense, I am probably doing something wrong. |
Thanks for checking @David-Else. Sorry about that I got confused by the old commit hash in your bug report. I think that's actually a separate (unrelated) bug with the way helix calculates the ouput of @aukeroorda managed to find a reproduction case for this bug (or a related issue): https://dpaste.org/7QrA9/raw](https://dpaste.org/7QrA9/raw. However the issue only happens for me when the view is scrolled far enough down so only softwrapped lines appear at the top (basically only the line is visible on screen and cutoff at the top). I am not sure why this appears for you @David-Else as that doesn't seem to be the case in the example you posted. I will start with fixing the case I can reproduce and as the problem is related to the same 10 loc or so I hope/assume that this will also fix the case you reported |
Glad I am not going mad, I am having a bad day with Git!
In my example I was scrolled all the way down to the bottom on the screen, I don't quite follow the rest of your explanation, but I bet it is the same bug, so, hurray!
Maybe add |
#5786 should fix this issue. At least the reproduction case works fine now and the code is relatively simple (I just forgot to subtract an offset in the special case for EOF) so I think/hope that there isn't a second bug there. You could give it a spin @David-Else to see if that fixes the issue for you since I am still not 100% sure if you issue is the same one as the reproduction case. |
Summary
When in a Markdown document with softwrap on, at the bottom of the document the cursor jumped to the line below and followed along with the typing.
When pressing enter and writing on the next line, the cursor jumped two lines below and followed along with the typing.
Eventually it fixed itself.
Reproduction Steps
Sorry, can't find reproduction steps, but it happened the first day of use after the softwrap update so I am sure it is from that @pascalkuthe .
Helix log
No response
Platform
Linux
Terminal Emulator
Kitty
Helix Version
helix 22.12 (71a544b)
The text was updated successfully, but these errors were encountered: