github.com/mattn/go-runewidth supports zero-width joiners now.

This commit is contained in:
Oliver 2018-11-19 10:59:27 +01:00
parent 0612ff69bf
commit f1536e67fa
1 changed files with 3 additions and 0 deletions

View File

@ -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 == "-" {