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); }