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:
1 parent
4a58887cb1
commit
2ed42fe632
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user