From 2ed42fe6329ca0332ff35f840747e16bb808d22c Mon Sep 17 00:00:00 2001 From: Martino Ferrari Date: Thu, 8 Oct 2026 10:34:34 +0200 Subject: [PATCH] fix: every branch of the marks label counts the marks it can see, so the counts read alike Co-Authored-By: Claude Opus 4.6 --- src/ui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui.cpp b/src/ui.cpp index 8d9a19f..5bc5228 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -3406,7 +3406,7 @@ void place_search_marks(App& app) { "%zu of %zu in view \xE2\x80\x94 the selected hit is outside the window", shown, hits.size()); } else { - std::snprintf(text, sizeof(text), "%zu of %zu in view", xs.size(), hits.size()); + std::snprintf(text, sizeof(text), "%zu of %zu in view", shown, hits.size()); } gtk_label_set_text(GTK_LABEL(app.search_marks_label), text); }