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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user