From 309e6892c3ea19db77ee02acf938ea30f63e82df Mon Sep 17 00:00:00 2001 From: Yang Zhang Date: Wed, 2 Jan 2019 23:32:56 +0800 Subject: Remove redundant init in text package --- util/text/left_padded.go | 7 ------- 1 file changed, 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 { -- cgit