runewidth: Disable East Asian width

This commit is contained in:
Trevor Slocum 2020-01-01 08:00:22 -08:00
parent 004751ce25
commit 384d842226
2 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,6 @@
This document explains why [tview](https://github.com/rivo/tview) was forked to
create [cview](https://git.sr.ht/~tslocum/cview). It also tracks which
tview pull requests have been merged into cview.
create [cview](https://git.sr.ht/~tslocum/cview) and tracks which tview pull
requests have been merged into cview.
# Why fork?
@ -25,4 +25,7 @@ maintainers and allowing code changes which may be outside of tview's scope.
# Merged pull requests
*Coming soon*
The following tview pull requests have been merged into cview:
- [#378 Throttle resize handling](https://github.com/rivo/tview/pull/378)
- [#353 Add window size change handler](https://github.com/rivo/tview/pull/353)

View File

@ -52,6 +52,9 @@ var (
// Package initialization.
func init() {
// Disable East Asian width. When enabled, runes may have ambiguous widths.
runewidth.EastAsianWidth = false
// We'll use zero width joiners.
runewidth.ZeroWidthJoiner = true