diff options
author | Jordan Yelloz <jordan@yelloz.me> | 2021-09-21 08:47:32 -0700 |
---|---|---|
committer | Jordan Yelloz <jordan@yelloz.me> | 2021-09-21 09:14:22 -0700 |
commit | 5f913e95589b362fa817e73d05c78f5eda522b0a (patch) | |
tree | a4ce2f913639751b5c0a1a86893c5bc90f5fada2 | |
parent | 3e20ecd6e1a38bddc43728ec8f44d7c9da985a5b (diff) | |
download | gtk+-5f913e95589b362fa817e73d05c78f5eda522b0a.tar.gz |
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
-rw-r--r-- | gtk/gtktextview.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index dd930c64b5..2e930f756e 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -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); |