aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYang Zhang <yang_zhang@iapcm.ac.cn>2019-01-02 23:32:56 +0800
committerYang Zhang <yang_zhang@iapcm.ac.cn>2019-01-02 23:32:56 +0800
commit309e6892c3ea19db77ee02acf938ea30f63e82df (patch)
tree211ec4fb2722ff6eb7ff90fc6645310bced9178c
parent5cf7b19dcce89f847f6f6d62685abaeca2b63e1c (diff)
downloadgit-bug-309e6892c3ea19db77ee02acf938ea30f63e82df.tar.gz
Remove redundant init in text package
-rw-r--r--util/text/left_padded.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/util/text/left_padded.go b/util/text/left_padded.go
index 43e84966..eae65d34 100644
--- a/util/text/left_padded.go
+++ b/util/text/left_padded.go
@@ -7,13 +7,6 @@ import (
"strings"
)
-// Force runewidth not to treat ambiguous runes as wide chars, so that things
-// like unicode ellipsis/up/down/left/right glyphs can have correct runewidth
-// and can be displayed correctly in terminals.
-func init() {
- runewidth.DefaultCondition.EastAsianWidth = false
-}
-
// LeftPadMaxLine pads a string on the left by a specified amount and pads the
// string on the right to fill the maxLength
func LeftPadMaxLine(text string, length, leftPad int) string {