-
Notifications
You must be signed in to change notification settings - Fork 123
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 to top of file during formatting #65
Comments
Seems similar to nbouscal/vim-stylish-haskell#7 |
I just started experiencing the same bug after a recent NeoVim update on Arch Linux. The application scrolls up until one line above the current cursor line, when running Does anyone have any advice to start debugging this issue? |
I'm trying to reproduce this with the latest Neovim. |
I think we need to restore screen position in addition to cursor position. |
@ronakg @expipiplus1 @jmnel f759745 would fix this issue. Please try the latest. |
Thank you for the fast response. The cursor and screen no longer jump from |
Yes, cursor jumps on undo. But currently the behavior is not avoidable because vim-clang-format replaces entire buffer. |
Because cursor moving on undo is the known issue and tracked in #8, let me close this issue. If you find another problem related to this issue, please let me know by commenting here or creating a new issue. Thank you for your report and cooperation. |
For a temporary solution, please see my comment in #8. |
When I run
:ClangFormat
the cursor jumps to top of the file and then jumps back down to where it was before. In this process the current visible buffer gets adjusted because the jump back puts the cursor in the middle of the visible area.Is it possible to avoid this jump at all?
The text was updated successfully, but these errors were encountered: