patch 9.1.1771: complete: some redraw issues with 'autocomplete'

Problem:  complete: some redraw issues with 'autocomplete'
Solution: Fix the issues (Girish Palya)

This commit contains the following changes:
* Fix that wildtrigger() might leave opened popupmenu around #18298
* Remove blinking message on the command line when a menu item from a loaded
  buffer is selected during 'autocomplete'
* Add a test for PR #18265 to demonstrate why the PR is required for correct
  'autocomplete' behavior

fixes: #18298
closes: #18328

Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Girish Palya
2025-09-18 19:46:01 +00:00
committed by Christian Brabandt
parent 6bea124137
commit ee9a2f0512
6 changed files with 49 additions and 7 deletions

View File

@ -2037,6 +2037,7 @@ getcmdline_int(
if (cmdline_pum_active())
{
skip_pum_redraw = skip_pum_redraw && !key_is_wc
&& !VIM_ISWHITE(c)
&& (vim_isprintc(c)
|| c == K_BS || c == Ctrl_H || c == K_DEL
|| c == K_KDEL || c == Ctrl_W || c == Ctrl_U);