Mercurial > vim
diff src/proto/gui_gtk_x11.pro @ 13152:f4c3a7f410f4 v8.0.1450
patch 8.0.1450: GUI: endless loop when stopping cursor blinking
commit https://github.com/vim/vim/commit/1dd45fb4f3371f0256653b2186c8b4b3d26b3f41
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 31 21:10:01 2018 +0100
patch 8.0.1450: GUI: endless loop when stopping cursor blinking
Problem: Endless loop when gui_mch_stop_blink() is called while blink_state
is BLINK_OFF. (zdohnal)
Solution: Avoid calling gui_update_cursor() recursively.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 31 Jan 2018 21:15:05 +0100 |
parents | 2c020bc30f62 |
children | f8cd07a1cbb5 |
line wrap: on
line diff
--- a/src/proto/gui_gtk_x11.pro +++ b/src/proto/gui_gtk_x11.pro @@ -4,7 +4,7 @@ void gui_mch_free_all(void); int gui_mch_is_blinking(void); int gui_mch_is_blink_off(void); void gui_mch_set_blinking(long waittime, long on, long off); -void gui_mch_stop_blink(void); +void gui_mch_stop_blink(int may_call_gui_update_cursor); void gui_mch_start_blink(void); int gui_mch_early_init_check(int give_message); int gui_mch_init_check(void); @@ -25,7 +25,7 @@ int gui_mch_maximized(void); void gui_mch_unmaximize(void); void gui_mch_newfont(void); void gui_mch_set_shellsize(int width, int height, int min_width, int min_height, int base_width, int base_height, int direction); -void gui_gtk_get_screen_size_of_win(GtkWidget *win, int *width, int *height); +void gui_gtk_get_screen_size_of_win(GtkWidget *wid, int *width, int *height); void gui_mch_get_screen_dimensions(int *screen_w, int *screen_h); void gui_mch_settitle(char_u *title, char_u *icon); void gui_mch_enable_menu(int showit);