Replaced "?/<total results>" with "<total results> results" for added clarity
@@ -247,14 +247,17 @@ fn paint(&mut self, ctx: &mut PaintCtx, data: &LapceTabData, env: &Env) {
let text_layout = ctx
.text()
.new_text_layout(if buffer.doc.find.borrow().occurrences().len() > 0 {
- format!(
- "{}/{}",
match index {
- Some(index) => format!("{}", index + 1),
- None => "?".to_string(),
- },
+ Some(index) => format!(
+ "{}/{}",
+ index + 1,
buffer.doc.find.borrow().occurrences().len()
- )
+ ),
+ None => format!(
+ "{} results",
+ buffer.doc.find.borrow().occurrences().len()
+ ),
+ }
} else {
"No results".to_string()
})
