Skip to content
Myr

Fix center-alignment of border/preview label

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

Fix #3421

authored by Junegunn Choi · committed by Junegunn Choi · parent 2c74f0a · Browse files · 3 files+9 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

3 files+9 added−1 removed

  • other:+9 added−1 removed

3 files+9 added−1 removed

modified:src/util/util_test.go+7 added
182 unmodified lines
183 if RepeatToFill("abcde", 10, 42) != strings.Repeat("abcde", 4)+"abcde"[:2] {184 t.Error("Expected:", strings.Repeat("abcde", 4)+"abcde"[:2])185 }186}187188func TestStringWidth(t *testing.T) {189 w := StringWidth("─")190 if w != 1 {191 t.Errorf("Expected: %d, Actual: %d", 1, w)192 }193}
modified:src/terminal.go+1 added-1 removed
779 unmodified lines
780 } else {781 window.CPrint(*color, str)782 }783 }784 return printFn, len(text)784 return printFn, length785 }786787 // Printer that correctly handles ANSI color codes and tab characters788 item := &Item{text: util.RunesToChars(runes), colors: colors}
2982 unmodified lines
modified:CHANGELOG.md+1 added
13 unmodified lines
14 # Client15 curl localhost:6266 -H "x-api-key: $FZF_API_KEY" -d 'change-query(yo)'16 ```17- Added `toggle-header` action18- Bug fixes19200.42.021------22- Added new info style: `--info=right`
1662 unmodified lines