diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-08-12 14:08:25 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-08-12 14:08:25 +0200 |
commit | 107abd2ca53c31fd3bb40d77ff296e98eaae2975 (patch) | |
tree | ec1ae0386ed26e1ea96291a69ddf47f9b7aef854 /src/gui.c | |
parent | 0e5d3a2940ead6c8ee3bacacea4153b647b67cca (diff) | |
download | vim-git-107abd2ca53c31fd3bb40d77ff296e98eaae2975.tar.gz |
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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } } |