From 1ab1e104b61d23e7ae0cea420cb68a8b79abee01 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 22 May 2025 22:28:51 +0530 Subject: [PATCH] ... --- kittens/choose_files/results.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kittens/choose_files/results.go b/kittens/choose_files/results.go index 0a44234f8..9bcbe169e 100644 --- a/kittens/choose_files/results.go +++ b/kittens/choose_files/results.go @@ -117,9 +117,11 @@ func (h *Handler) draw_column_of_matches(matches []ResultItem, x, available_widt icon := icon_for(m.abspath, m.dir_entry) text := "" tlen := 0 + positions := m.positions if num_extra_matches > 0 && i == len(matches)-1 { icon = "… " - text = fmt.Sprintf("%d more matches", num_extra_matches) + text = h.lp.SprintStyled("italic", fmt.Sprintf("%d more matches", num_extra_matches)) + positions = nil } else { text = m.text tlen = len(text) @@ -129,7 +131,7 @@ func (h *Handler) draw_column_of_matches(matches []ResultItem, x, available_widt } } h.lp.QueueWriteString(icon + " ") - h.render_match_with_positions(text, tlen, m.positions, 1) + h.render_match_with_positions(text, tlen, positions, 1) h.lp.MoveCursorVertically(1) } }