vim-patch:9.2.0596: cmdline completion popup cannot be scrolled with the mouse (#40142)

Problem:  In command-line completion with a popup menu ('wildoptions'
          contains "pum"), the info popup shown next to the menu could
          not be scrolled, unlike the Insert mode completion info popup
          which scrolls with the mouse wheel.
Solution: When the mouse pointer is on top of the info popup, scroll it
          with the mouse wheel in command-line mode as well, without
          closing the completion popup menu.

closes: vim/vim#20146
closes: vim/vim#20418

96dbab257a

Co-authored-by: Hirohito Higashi <h.east.727@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
zeertzjq
2026-06-08 20:53:10 +08:00
committed by GitHub
parent 3f37b230af
commit 4ab670399b
7 changed files with 310 additions and 5 deletions

View File

@@ -10497,7 +10497,10 @@ local options = {
is not supported for file and directory names and
instead wildcard expansion is used.
pum Display the completion matches using the popup menu in
the same style as the |ins-completion-menu|.
the same style as the |ins-completion-menu|. When an
info popup is shown next to the menu, it can be
scrolled by moving the mouse pointer on top of it and
using the scroll wheel.
tagfile When using CTRL-D to list matching tags, the kind of
tag and the file of the tag is listed. Only one match
is displayed per line. Often used tag kinds are: