diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-27 00:51:40 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-27 00:51:40 -0500 |
commit | 2db1e71ace9d9a91e35ef57c3901c7ebae8f82f0 (patch) | |
tree | 0ddea284d8942ccb4dffd69d5238ec54ff66167f /find.c | |
parent | ef6ae187289dd58a3b03da8b991a8099616a763d (diff) |
fix bug in find display match #
Diffstat (limited to 'find.c')
-rw-r--r-- | find.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |