diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-11-28 20:22:06 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-11-28 20:22:06 +0100 |
commit | ebec3e29b83e6b5ccdd67a79993628871cda4b5b (patch) | |
tree | 7f4eff552f15efc1fece570a4097cfa2d082b3e7 /src/popupwin.c | |
parent | dc234caff22131bdc1ff9ea50d67e11843d0d73e (diff) | |
download | vim-git-ebec3e29b83e6b5ccdd67a79993628871cda4b5b.tar.gz |
patch 8.2.2064: terminal: cursor is on while redrawing, causing flickerv8.2.2064
Problem: terminal: cursor is on while redrawing, causing flicker.
Solution: Switch the cursor off while redrawing. Always add the top and
left offset to the cursor position when not done already.
(closes #5943)
Diffstat (limited to 'src/popupwin.c')
-rw-r--r-- | src/popupwin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/popupwin.c b/src/popupwin.c index 61f447ded..cfd2050d3 100644 --- a/src/popupwin.c +++ b/src/popupwin.c @@ -3699,6 +3699,9 @@ update_popups(void (*win_update)(win_T *wp)) int attr_scroll = 0; int attr_thumb = 0; + // hide the cursor until redrawing is done. + cursor_off(); + // Find the window with the lowest zindex that hasn't been updated yet, // so that the window with a higher zindex is drawn later, thus goes on // top. |