[vim/vim] Scroll the cmdline completion info popup with the mouse wheel (PR #20418)

8 views
Skip to first unread message

h_east

unread,
Jun 3, 2026, 1:10:03 AM (yesterday) Jun 3
to vim/vim, Subscribed
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.

fixes: #20146


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20418

Commit Summary

  • 531d4ab Scroll the cmdline completion info popup with the mouse wheel

File Changes

(5 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20418@github.com>

Christian Brabandt

unread,
Jun 3, 2026, 2:32:54 PM (yesterday) Jun 3
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20418)

thanks


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20418/c4615560903@github.com>

Christian Brabandt

unread,
Jun 3, 2026, 2:49:42 PM (yesterday) Jun 3
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20418)

Hm, does the test depend on the geometry of the vim window / terminal size?
It fails for me consistently in my terminal window, unless I set set columns=81 lines=24:

diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim
index ec92560fa..67785eb79 100644
--- a/src/testdir/test_cmdline.vim
+++ b/src/testdir/test_cmdline.vim
@@ -4773,6 +4773,8 @@ endfunc
 func Test_wildmenu_pum_info_mouse_scroll()
   CheckFeature quickfix
   CheckFeature mouse
+  let [_columns, _lines] = [&columns, &lines]
+  set columns=81 lines=24

   func DictComp(A, L, P)
     let info = join(map(range(1, 30), '"info line " .. v:val'), "\n")
@@ -4816,6 +4818,7 @@ func Test_wildmenu_pum_info_mouse_scroll()
   delfunc PrepMouse
   unlet g:fl
   set wildmenu& wildoptions& completeopt& mouse&
+  let [&columns, &lines] = [_columns, _lines]
 endfunc

 func Test_cmdline_complete_findfunc_dict()


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20418/c4615679290@github.com>

h_east

unread,
Jun 3, 2026, 11:19:50 PM (16 hours ago) Jun 3
to vim/vim, Subscribed
h-east left a comment (vim/vim#20418)

I have updated the newly added test to use screendumps instead.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20418/c4618639488@github.com>

Reply all
Reply to author
Forward
0 new messages