Skip to content
Myr

Fix inline info truncation

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent a859aa7 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/terminal.go+1 added-1 removed
793 unmodified lines
794 }795 maxWidth := t.window.Width() - pos796 if len(output) > maxWidth {797 outputRunes, _ := t.trimRight([]rune(output), maxWidth-2)798 output = string(outputRunes) + ".."798 output = string(outputRunes) + strings.Repeat(".", util.Constrain(maxWidth, 0, 2))799 }800 t.window.CPrint(tui.ColInfo, 0, output)801}802
1387 unmodified lines