From 1afd14381079a35eac0a4c2a5cacb86e2a3f476b Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 8 Aug 2025 18:51:24 +0900 Subject: Fix incorrect truncation of --info-command with --info=inline-right Fix #4479 --- src/terminal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/terminal.go b/src/terminal.go index 0fd5d006..dafd5f87 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -1394,7 +1394,7 @@ func (t *Terminal) ansiLabelPrinter(str string, color *tui.ColorPair, fill bool) if !fill { ellipsis, ellipsisWidth = util.Truncate(t.ellipsis, limit) } - if length > limit-ellipsisWidth { + if length > limit { trimmedRunes, _ := t.trimRight(runes, limit-ellipsisWidth) window.CPrint(*color, string(trimmedRunes)+string(ellipsis)) } else if fill { -- cgit v1.2.3