Merge branch 'master' into 'master'

gtktextview: Fixed arrow key crash.

Closes #4275

See merge request GNOME/gtk!3984
This commit is contained in:
Matthias Clasen 2021-09-22 23:03:18 +00:00
commit d7db3f1546

View File

@ -6202,7 +6202,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);