]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0423: popup: wrapped cmdline truncated with wildoptions=pum v9.2.0423
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Fri, 1 May 2026 13:25:31 +0000 (13:25 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 1 May 2026 13:25:31 +0000 (13:25 +0000)
commit587447ec64ffd9e6eaba329ffd9d778159ea6e32
treebdbb998b8ee996395377a4cc510bcb27f9f78528
parentba85f88fe95db2daf3ea2542042af9e65308e2b8
patch 9.2.0423: popup: wrapped cmdline truncated with wildoptions=pum

Problem:  popup: wrapped cmdline truncated with wildoptions=pum
Solution: Call msg_starthere() in redrawcmd() to reset lines_left
          before each redraw (Yasuhiro Matsumoto).

redrawcmd() leaves lines_left at its previous value, which decrements
across successive redraws (e.g. when wildtrigger() refreshes the popup
on every keystroke) until 0, after which msg_no_more aborts drawing
the wrapped cmdline. Call msg_starthere() to reset it.

related: #20081

Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/ex_getln.c
src/testdir/dumps/Test_wildtrigger_wrapped_cmdline_1.dump [new file with mode: 0644]
src/testdir/test_cmdline.vim
src/version.c