summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-08-12 14:08:25 +0200
committerBram Moolenaar <Bram@vim.org>2016-08-12 14:08:25 +0200
commit107abd2ca53c31fd3bb40d77ff296e98eaae2975 (patch)
treeec1ae0386ed26e1ea96291a69ddf47f9b7aef854 /src/gui.c
parent0e5d3a2940ead6c8ee3bacacea4153b647b67cca (diff)
patch 7.4.2199v7.4.2199
Problem: In the GUI the cursor is hidden when redrawing any window, causing flicker. Solution: Only undraw the cursor when updating the window it's in.
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui.c b/src/gui.c
index 0d858ec5b1..6f1d8f51b7 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -1964,12 +1964,13 @@ gui_write(
* gui_can_update_cursor() afterwards.
*/
void
-gui_dont_update_cursor(void)
+gui_dont_update_cursor(int undraw)
{
if (gui.in_use)
{
/* Undraw the cursor now, we probably can't do it after the change. */
- gui_undraw_cursor();
+ if (undraw)
+ gui_undraw_cursor();
can_update_cursor = FALSE;
}
}