From: Jordan Yelloz Date: Tue, 21 Sep 2021 15:47:32 +0000 (-0700) Subject: gtktextview: Fixed arrow key crash. X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2^2~21 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cc5a7b153db3a478b3642b89b89e9a0ce76a7d72;p=gtk4.git gtktextview: Fixed arrow key crash. When pressing the keyboard arrows to move around when the insertion point is hidden, it causes an assertion error in blink_cb. Insertion point blinks should only be scheduled when blinking is enabled and the insertion point is visible. Closes #4275 --- diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 4bd918fbcf..e58e3c5c02 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -6200,7 +6200,7 @@ gtk_text_view_check_cursor_blink (GtkTextView *text_view) static void gtk_text_view_pend_cursor_blink (GtkTextView *text_view) { - if (cursor_blinks (text_view)) + if (cursor_blinks (text_view) && cursor_visible (text_view)) { remove_blink_timeout (text_view); add_blink_timeout (text_view, TRUE);