aboutsummaryrefslogtreecommitdiffstats
path: root/util/text/left_padded_test.go
diff options
context:
space:
mode:
authorYang Zhang <yang_zhang@iapcm.ac.cn>2019-01-01 21:52:05 +0800
committerYang Zhang <yang_zhang@iapcm.ac.cn>2019-01-01 21:52:05 +0800
commit5cf7b19dcce89f847f6f6d62685abaeca2b63e1c (patch)
treebd3653b0485adc55d20c8a6cd6959657b047dd3a /util/text/left_padded_test.go
parente29188e6ff686897c296246baee54641d076825f (diff)
downloadgit-bug-5cf7b19dcce89f847f6f6d62685abaeca2b63e1c.tar.gz
Make runewidth treat ambiguous rune as short and fix ui display
Diffstat (limited to 'util/text/left_padded_test.go')
-rw-r--r--util/text/left_padded_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/text/left_padded_test.go b/util/text/left_padded_test.go
index a8ea12fe..0be79e32 100644
--- a/util/text/left_padded_test.go
+++ b/util/text/left_padded_test.go
@@ -16,7 +16,7 @@ func TestLeftPadMaxLine(t *testing.T) {
},
{
"foofoofoo",
- "f...",
+ "foo…",
4,
0,
},
@@ -28,13 +28,13 @@ func TestLeftPadMaxLine(t *testing.T) {
},
{
"foo",
- " ...",
+ " f…",
4,
2,
},
{
"foofoofoo",
- " f...",
+ " foo…",
6,
2,
},