diff src/popupwin.c @ 23035:fabd80ec9620 v8.2.2064

patch 8.2.2064: terminal: cursor is on while redrawing, causing flicker Commit: https://github.com/vim/vim/commit/ebec3e29b83e6b5ccdd67a79993628871cda4b5b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 28 20:22:06 2020 +0100 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)
author Bram Moolenaar <Bram@vim.org>
date Sat, 28 Nov 2020 20:30:04 +0100
parents 7b0aa7e2274f
children 6620b51e2916
line wrap: on
line diff
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -3699,6 +3699,9 @@ update_popups(void (*win_update)(win_T *
     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.