Skip to content
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

fix(scroll): restore win view after rendering buffer #516

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

willothy
Copy link

problem: as of neovim/neovim#24824 buf_set_lines adjusts topline differently, which breaks scrolling in the which-key menu. See the discussion in that PR for more info.
solution: save and restore view when rendering to ensure that the render does not change scroll position.

fixes #515

problem: as of neovim/neovim#24824 buf_set_lines adjusts topline differently, which breaks scrolling in the which-key menu.
solution: save and restore view when rendering to ensure that the render does not change scroll position.

fixes folke#515
@mrcjkb
Copy link

mrcjkb commented Nov 20, 2023

Can confirm this fix works for me.

@willothy willothy changed the title fix: restore win view after rendering buffer fix(scroll): restore win view after rendering buffer Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: scroll mappings not working in nvim 0.10
2 participants