Disambiguate no result for search

This commit is contained in:
Joshua Barretto 2025-10-31 15:29:03 +00:00
parent 0f97ee706f
commit 1bfdf1545d

View file

@ -227,9 +227,16 @@ impl Visual for Searcher {
)
.with(|f| {
let title = format!(
"{} of {} results for '{}' in {}/",
self.options.selected + 1,
self.options.ranking.len(),
"{} results for '{}' in {}/",
if self.options.ranking.is_empty() {
format!("No")
} else {
format!(
"{} of {}",
self.options.selected + 1,
self.options.ranking.len()
)
},
self.needle,
self.path.display()
);