1
0
forked from aniani/vim

patch 8.2.2064: terminal: cursor is on while redrawing, causing flicker

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)
This commit is contained in:
Bram Moolenaar
2020-11-28 20:22:06 +01:00
parent dc234caff2
commit ebec3e29b8
3 changed files with 15 additions and 10 deletions

View File

@@ -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.