diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-07-10 23:16:09 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-07-10 23:16:09 +0200 |
commit | da3a77d9ec28407b8fa2aa014e76944d0a525662 (patch) | |
tree | 5ccf7a4e599271b5d3d846d71e1318f4351e6d1f /src/gui_gtk_x11.c | |
parent | 7c0a2f367f2507669560b1a66423155c70d2e75b (diff) | |
download | vim-git-da3a77d9ec28407b8fa2aa014e76944d0a525662.tar.gz |
patch 7.4.2025v7.4.2025
Problem: The cursor blinking stops or is irregular when receiving date over
a channel and writing it in a buffer, and when updating the status
line. (Ramel Eshed)
Solution: Make it a bit better by flushing GUI output. Don't redraw the
cursor after updating the screen if the blink state is off.
Diffstat (limited to 'src/gui_gtk_x11.c')
-rw-r--r-- | src/gui_gtk_x11.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c index 39b918ab8..9437ed3b1 100644 --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -867,7 +867,10 @@ gui_mch_stop_blink(void) blink_timer = 0; } if (blink_state == BLINK_OFF) + { gui_update_cursor(TRUE, FALSE); + gui_mch_flush(); + } blink_state = BLINK_NONE; } @@ -902,6 +905,7 @@ blink_cb(gpointer data UNUSED) (GtkFunction) blink_cb, NULL); #endif } + gui_mch_flush(); return FALSE; /* don't happen again */ } @@ -934,6 +938,7 @@ gui_mch_start_blink(void) #endif blink_state = BLINK_ON; gui_update_cursor(TRUE, FALSE); + gui_mch_flush(); } } |