From f1536e67fae545a608bf86215bac90a7356d1434 Mon Sep 17 00:00:00 2001 From: Oliver <480930+rivo@users.noreply.github.com> Date: Mon, 19 Nov 2018 10:59:27 +0100 Subject: [PATCH] github.com/mattn/go-runewidth supports zero-width joiners now. --- util.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util.go b/util.go index ce61d24..d793e0a 100644 --- a/util.go +++ b/util.go @@ -51,6 +51,9 @@ var ( // Package initialization. func init() { + // We'll use zero width joiners. + runewidth.ZeroWidthJoiner = true + // Initialize the predefined input field handlers. InputFieldInteger = func(text string, ch rune) bool { if text == "-" {