summaryrefslogtreecommitdiff
path: root/find.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-27 00:51:40 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-27 00:51:40 -0500
commit2db1e71ace9d9a91e35ef57c3901c7ebae8f82f0 (patch)
tree0ddea284d8942ccb4dffd69d5238ec54ff66167f /find.c
parentef6ae187289dd58a3b03da8b991a8099616a763d (diff)
fix bug in find display match #
Diffstat (limited to 'find.c')
-rw-r--r--find.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/find.c b/find.c
index 12455bd..9298f53 100644
--- a/find.c
+++ b/find.c
@@ -389,7 +389,7 @@ static void find_menu_frame(Ted *ted, float x1, float y1, float x2, float y2) {
u32 match_idx = find_match_idx(ted);
if (match_idx == U32_MAX) {
strbuf_printf(str, U32_FMT " matches", arr_len(ted->find_results));
- } else if (buffer->selection) {
+ } else {
strbuf_printf(str, U32_FMT " of " U32_FMT, match_idx + 1, arr_len(ted->find_results));
}
text_get_size(font, str, &w, &h);