diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2020-02-06 12:01:51 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-02-06 12:01:51 +0900 |
| commit | 8583b150c91c47b180f14099f72e93619ea946b2 (patch) | |
| tree | 935728c0b3192e9a96a8a5f82ee894cf7cf421cb /src | |
| parent | a859aa72ee0ab6e7ae948752906483e468a501ee (diff) | |
| download | fzf-8583b150c91c47b180f14099f72e93619ea946b2.tar.gz | |
Fix inline info truncation
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 56085be1..e9101a52 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -795,7 +795,7 @@ func (t *Terminal) printInfo() { maxWidth := t.window.Width() - pos if len(output) > maxWidth { outputRunes, _ := t.trimRight([]rune(output), maxWidth-2) - output = string(outputRunes) + ".." + output = string(outputRunes) + strings.Repeat(".", util.Constrain(maxWidth, 0, 2)) } t.window.CPrint(tui.ColInfo, 0, output) } |
