diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-08-08 18:51:24 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-08-08 18:51:24 +0900 |
| commit | 1afd14381079a35eac0a4c2a5cacb86e2a3f476b (patch) | |
| tree | 0a7748d4112a56751026f21b89d505f74e4a613a /src | |
| parent | e5cd7f0a3a73ef598267c1e9f29b0fe9a80925ab (diff) | |
| download | fzf-1afd14381079a35eac0a4c2a5cacb86e2a3f476b.tar.gz | |
Fix incorrect truncation of --info-command with --info=inline-right
Fix #4479
Diffstat (limited to 'src')
| -rw-r--r-- | src/terminal.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |
