diff options
author | Yang Zhang <yang_zhang@iapcm.ac.cn> | 2019-01-02 23:32:56 +0800 |
---|---|---|
committer | Yang Zhang <yang_zhang@iapcm.ac.cn> | 2019-01-02 23:32:56 +0800 |
commit | 309e6892c3ea19db77ee02acf938ea30f63e82df (patch) | |
tree | 211ec4fb2722ff6eb7ff90fc6645310bced9178c /util | |
parent | 5cf7b19dcce89f847f6f6d62685abaeca2b63e1c (diff) | |
download | git-bug-309e6892c3ea19db77ee02acf938ea30f63e82df.tar.gz |
Remove redundant init in text package
Diffstat (limited to 'util')
-rw-r--r-- | util/text/left_padded.go | 7 |
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 { |