From 5da01ec4afc331e2ad50fcf4eaf57627305ba790 Mon Sep 17 00:00:00 2001 From: Luca Bacci Date: Fri, 21 Jul 2023 15:33:45 +0200 Subject: [PATCH] gtktextview: return early when resetting gesture / event controller Fixes #5965 --- gtk/gtktextview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index b0a68f8504..b1af05e2c9 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -5653,7 +5653,7 @@ gtk_text_view_click_gesture_pressed (GtkGestureClick *gesture, gtk_text_iter_get_line (&ins)) { gtk_event_controller_reset (GTK_EVENT_CONTROLLER (gesture)); - n_press = 1; + return; } }