diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-17 21:09:05 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-17 21:09:05 +0100 |
commit | ae654385dfb2ae4c1d70789d1dce3676dba4dfbc (patch) | |
tree | 42dcbad57fb99544e9346fa8b075df03865ba1f4 /src/screen.c | |
parent | c771bf901622064dc27421b04853e16b6914a295 (diff) | |
download | vim-git-ae654385dfb2ae4c1d70789d1dce3676dba4dfbc.tar.gz |
patch 8.1.0768: updating completions may cause the popup menu to flickerv8.1.0768
Problem: Updating completions may cause the popup menu to flicker.
Solution: Avoid updating the text below the popup menu before drawing the
popup menu.
Diffstat (limited to 'src/screen.c')
-rw-r--r-- | src/screen.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c index cd146fd6c..1b53ae2cd 100644 --- a/src/screen.c +++ b/src/screen.c @@ -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). */ |