0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

patch 8.1.0768: updating completions may cause the popup menu to flicker

Problem:    Updating completions may cause the popup menu to flicker.
Solution:   Avoid updating the text below the popup menu before drawing the
            popup menu.
This commit is contained in:
Bram Moolenaar
2019-01-17 21:09:05 +01:00
parent c771bf9016
commit ae654385df
5 changed files with 65 additions and 13 deletions

View File

@@ -183,7 +183,7 @@ static int screen_char_attr = 0;
/*
* Redraw the current window later, with update_screen(type).
* Set must_redraw only if not already set to a higher value.
* e.g. if must_redraw is CLEAR, type NOT_VALID will do nothing.
* E.g. if must_redraw is CLEAR, type NOT_VALID will do nothing.
*/
void
redraw_later(int type)
@@ -8475,6 +8475,10 @@ screen_char(unsigned off, int row, int col)
if (row >= screen_Rows || col >= screen_Columns)
return;
#ifdef FEAT_INS_EXPAND
if (pum_under_menu(row, col))
return;
#endif
/* Outputting a character in the last cell on the screen may scroll the
* screen up. Only do it when the "xn" termcap property is set, otherwise
* mark the character invalid (update it when scrolled up). */