From 55dd737ea0c2be2a23469680ce10a6026f81f7b2 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Tue, 21 Apr 2020 13:39:50 -0700 Subject: [PATCH] textview: fix assertion when toggling caret visibility When toggling caret visibility (with F7) we would hit an assertion if the cursor is currently blinking. This adjusts things to ensure that we should be showing the carent when scheduling our blink timeouts. Fixes #2647 --- gtk/gtktextview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 1835c4fd14..8426cbb4ac 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -6048,7 +6048,7 @@ gtk_text_view_check_cursor_blink (GtkTextView *text_view) { GtkTextViewPrivate *priv = text_view->priv; - if (cursor_blinks (text_view)) + if (cursor_blinks (text_view) && cursor_visible (text_view)) { if (!priv->blink_tick) add_blink_timeout (text_view, FALSE);