mirror of
https://github.com/neovim/neovim.git
synced 2026-05-23 21:30:11 +00:00
vim-patch:partial:9.2.0423: popup: wrapped cmdline truncated with wildoptions=pum (#39553)
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: vim/vim#20081
587447ec64
The problem mentioned in the PR cannot be reproduced in Nvim. It's not
clear if this change will solve or cause any problems in Nvim, so let's
first try it without adding the test.
Co-authored-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
This commit is contained in:
@@ -4064,6 +4064,8 @@ void redrawcmd(void)
|
||||
|
||||
sb_text_restart_cmdline();
|
||||
msg_start();
|
||||
// Reset lines_left so a wrapped cmdline isn't truncated by msg_no_more.
|
||||
msg_starthere();
|
||||
redrawcmdprompt();
|
||||
|
||||
// Don't use more prompt, truncate the cmdline if it doesn't fit.
|
||||
|
||||
Reference in New Issue
Block a user