From 2db1e71ace9d9a91e35ef57c3901c7ebae8f82f0 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Sat, 27 Feb 2021 00:51:40 -0500 Subject: fix bug in find display match # --- find.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3