m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-15 06:43:47 -05:00

Fix center-alignment of border/preview label

Fix #3421
This commit is contained in:
Junegunn Choi
2023-09-01 20:28:56 +09:00
parent 2c74f0a040
commit f50a7058d6
3 changed files with 9 additions and 1 deletions

View File

@@ -184,3 +184,10 @@ func TestRepeatToFill(t *testing.T) {
t.Error("Expected:", strings.Repeat("abcde", 4)+"abcde"[:2])
}
}
func TestStringWidth(t *testing.T) {
w := StringWidth("─")
if w != 1 {
t.Errorf("Expected: %d, Actual: %d", 1, w)
}
}