From 8fabf68879cb37feb05647c44fcea9d04d75cefd Mon Sep 17 00:00:00 2001 From: Theo Linkspfeifer Date: Tue, 12 Nov 2019 16:45:47 +0100 Subject: [PATCH 3/4] Do not update occurrences counter when pressing Find --- mousepad/mousepad-replace-dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mousepad/mousepad-replace-dialog.c b/mousepad/mousepad-replace-dialog.c index ee952e8..341b87e 100644 --- a/mousepad/mousepad-replace-dialog.c +++ b/mousepad/mousepad-replace-dialog.c @@ -423,7 +423,7 @@ mousepad_replace_dialog_response (GtkWidget *widget, mousepad_util_entry_error (dialog->search_entry, matches == 0); /* update counter */ - if (replace_all) + if (response_id != MOUSEPAD_RESPONSE_FIND && replace_all) { message = g_strdup_printf (ngettext ("%d occurrence", "%d occurrences", matches), matches); gtk_label_set_markup (GTK_LABEL (dialog->hits_label), message); -- 2.20.1