Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
23034:562144879d7f | 23035:fabd80ec9620 |
---|---|
3697 int sb_thumb_top = 0; | 3697 int sb_thumb_top = 0; |
3698 int sb_thumb_height = 0; | 3698 int sb_thumb_height = 0; |
3699 int attr_scroll = 0; | 3699 int attr_scroll = 0; |
3700 int attr_thumb = 0; | 3700 int attr_thumb = 0; |
3701 | 3701 |
3702 // hide the cursor until redrawing is done. | |
3703 cursor_off(); | |
3704 | |
3702 // Find the window with the lowest zindex that hasn't been updated yet, | 3705 // Find the window with the lowest zindex that hasn't been updated yet, |
3703 // so that the window with a higher zindex is drawn later, thus goes on | 3706 // so that the window with a higher zindex is drawn later, thus goes on |
3704 // top. | 3707 // top. |
3705 popup_reset_handled(POPUP_HANDLED_5); | 3708 popup_reset_handled(POPUP_HANDLED_5); |
3706 while ((wp = find_next_popup(TRUE, POPUP_HANDLED_5)) != NULL) | 3709 while ((wp = find_next_popup(TRUE, POPUP_HANDLED_5)) != NULL) |