-
Notifications
You must be signed in to change notification settings - Fork 515
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 weird movement when having 3 split windows #2516
Comments
There's not much we can do about it unfortunately, we have a hack trying to prevent it, but it's not dealing with all situations. It really needs to be fixed on the Neovim side: |
Is there a temporary way to prevent it? I try to disabled the cursor animation also but it's still there |
Hm, this issue might be a bit different, it looks like grid is modifed
That is, it adds a winseparator (highlight id 1305), and then deletes it. I suspect either |
bandicam.2024-04-30.16-12-02-463.mp4Update: changing vim.opt.laststatus from 3 to 1 work for me and prevent the flicker |
Although I think this is another Neovim spurious cursor movement bug. It seems to move to the separator when the layout changes. I think we might be able to make a workaround in Neovide by debouncing the cursor movements. We could wait for say 10 ms before moving the cursor. That should be enough for the cursor to move and come back. It adds a very slight extra latency, but 10 ms should not be too bad, and I doubt anyone would notice. This could replace our existing hack. |
😊 Cool, looking forward to it |
I'm re-opening this, since it's not actually fixed yet. |
I'm trying to fix this, but I need to be able to reproduce it. Is it possible for you to either provide your full configuration or create one using this template from Neovim https://github.com/neovim/neovim/blob/master/contrib/minimal.lua? |
Describe the bug
When having 3 windows split on your screen, like in this video I provide which are Neotree, toggleterm and the main buffer. When I interact to my main buffer, in my case were randomly
Going insert mode
,typing
,Hitting Undo button
,delete a line
... My cursor made some moves to somewhere to the bottom and then comeback to the original position (should be clear when seeing the video)To Reproduce
Steps to reproduce the behavior:
Going insert mode
,typing
,Hitting Undo button
,delete a line
Expected behavior
Cursor stay still as a normal neovim would do
Screenshots
bandicam.2024-04-30.14-25-21-495.mp4
Desktop (please complete the following information):
Please run
neovide --log
and paste the contents of the.log
file created in the current directory here:neovide_rCURRENT.log
The text was updated successfully, but these errors were encountered: