From bb21f2c221d98db5c70a95225ae06392f4812aeb Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Sun, 12 Feb 2017 00:24:31 +0900 Subject: [PATCH] use Ascii for CJK --- wuzz.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wuzz.go b/wuzz.go index a04a2f6..8aa9b92 100644 --- a/wuzz.go +++ b/wuzz.go @@ -20,6 +20,7 @@ import ( "time" "github.com/jroimartin/gocui" + "github.com/mattn/go-runewidth" ) const VERSION = "0.1.0" @@ -1008,6 +1009,9 @@ func main() { if err != nil { log.Panicln(err) } + if runtime.GOOS == "windows" && runewidth.IsEastAsian() { + g.Ascii = true + } app := &App{history: make([]*Request, 0, 31)}