Skip to content

Comments

Preserve completion doc scroll position#1636

Open
hbarcelos wants to merge 3 commits intoprabirshrestha:masterfrom
hbarcelos:master
Open

Preserve completion doc scroll position#1636
hbarcelos wants to merge 3 commits intoprabirshrestha:masterfrom
hbarcelos:master

Conversation

@hbarcelos
Copy link

@hbarcelos hbarcelos commented Jan 12, 2026

Fix completion documentation popup scrolling reset in Vim.

The completion docs popup is re-opened on CompleteChanged; this preserves the existing scroll position (topline) when the popup already exists, so manual scrolling doesn’t jump back to the top.

Tested on Vim 9.1 popup windows.

image

I also noticed that the conceal config was somewhat inconsistent, depending on how the user sets it. For reading purposes, it's better that conceal is always enabled, even when the line in the popover is highlighted.

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.

1 participant