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 <noreply@anthropic.com>
This commit is contained in:
Martino FerrariandClaude Opus 4.6 committed 2026-10-08 10:34:34 +02:00
1 parent 4a58887cb1
commit 2ed42fe632
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}