Skip to content

Commit 986d441

Browse files
committed
...
1 parent d4a4694 commit 986d441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kittens/choose_files/results.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func (h *Handler) draw_num_of_matches(num_shown, y int) {
180180
case 0:
181181
m = " no matches "
182182
default:
183-
m = fmt.Sprintf(" %d of %d matches ", num_shown, h.state.num_of_matches_at_last_render)
183+
m = fmt.Sprintf(" %d of %d matches ", min(num_shown, h.state.num_of_matches_at_last_render), h.state.num_of_matches_at_last_render)
184184
}
185185
w := int(math.Ceil(float64(wcswidth.Stringwidth(m)) / 2.0))
186186
h.lp.MoveCursorTo(h.screen_size.width-w-2, y)

0 commit comments

Comments
 (0)