-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Deleting a line intermittently screws up the cursor position. #3694
Comments
This is happening for me as well. I'll add that once it starts, any combination of |
This is happening for me after deleting a line. It's usually Code Version: Version 1.33.1 |
This also happens to me. I can reproduce it with splits viewing the same file. For example, I open a vertical split and move the cursor in the right split down to the bottom of the file. Then, I switch back to the left split (still the same file as the right side) and do I've noticed that it only happens when I have splits on the same file; it doesn't happen for me when each split has a different file. |
That could be related to my problem, but it sounds a little different: in my case the cursor always jumps to the very bottom of the file (like @MattMcMurray). It is possible in all the cases this has happened that the file has been open in another tab (not currently visible) in another split. I tend to have a lot of splits and tabs open at any moment. I'll check it out when I run into this problem again. |
I have this issue also. It occurs mostly when running split windows on the same file. If I have all four splits --- I hope this helps. |
I have this issue as well. Like the others said, it seems to be happening with multiple windows open on the same file. |
I have this issue as well! |
I can confirm that this issue happens for me even when the file is open in only a single vertical split. (But there are splits with other files open). It's possible this occurs during a session that had the file open in multiple splits at some point. |
Anyone knows where I can start looking if I want to try and tackle this issue? |
Similar issue: #3804 From a quick glance at the code, it seems like the current editor state is tied to an |
This PR improves the |
I believe this was fixed with #4074. If anyone is still experiencing this, holler and I'll re-open. |
Removing a line of text can lead to unwanted behavior on the next cursor move. This bug occurs unreliably; I cannot yet determine the conditions that lead to the problem. Reloading a window where the error is occurring, or performing the actions in a new, copy of the same file (without reloading) and repeating the same actions fails to reproduce the problem. It appears that there is some per-file state that is causing the problem.
For example:
With the text:
If i am on line 2 and type "ddk" line 2 will be deleted and the cursor will then jump to the end of the file.
The text was updated successfully, but these errors were encountered: