From: h-east Date: Sun, 15 Dec 2024 18:32:39 +0000 (+0100) Subject: patch 9.1.0930: tests: test_terminal2 may hang in GUI mode X-Git-Tag: v9.1.0930^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b34622579ca2ffa701ea6cf27a09b17bf74e6f62;p=thirdparty%2Fvim.git patch 9.1.0930: tests: test_terminal2 may hang in GUI mode Problem: tests: test_terminal2 may hang in GUI mode Solution: break the loop in gui_mch_update() after at most 99 iterations (h-east) related: #16211 Signed-off-by: h-east Signed-off-by: Christian Brabandt --- diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c index c037702ad9..284be30889 100644 --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -6621,7 +6621,9 @@ gui_mch_draw_part_cursor(int w, int h, guicolor_T color) void gui_mch_update(void) { - while (g_main_context_pending(NULL) && !vim_is_input_buf_full()) + int cnt = 0; // prevent endless loop + while (g_main_context_pending(NULL) && !vim_is_input_buf_full() + && ++cnt < 100) g_main_context_iteration(NULL, TRUE); } diff --git a/src/version.c b/src/version.c index 3f9d8003b8..66bbbe8875 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 930, /**/ 929, /**/