mirror of
https://github.com/vim/vim.git
synced 2026-05-28 00:21:37 +02:00
patch 9.2.0366: pum: flicker when updating pum in place
Problem: pum: flicker when updating pum in place
Solution: Skip update_screen() when the popup menu is redrawn
at the same position (Yasuhiro Matsumoto).
closes: #20015
Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
1966a1c896
commit
237d77e07c
+3
-2
@@ -1828,8 +1828,9 @@ ins_compl_show_pum(void)
|
||||
if (!pum_wanted() || !pum_enough_matches())
|
||||
return;
|
||||
|
||||
// Update the screen later, before drawing the popup menu over it.
|
||||
pum_call_update_screen();
|
||||
// Avoid redrawing the screen under a pum that stays in place.
|
||||
if (!pum_redraw_in_same_position())
|
||||
pum_call_update_screen();
|
||||
|
||||
if (compl_match_array == NULL)
|
||||
// Need to build the popup menu list.
|
||||
|
||||
@@ -734,6 +734,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
366,
|
||||
/**/
|
||||
365,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user