diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2020-10-23 23:32:10 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-10-23 23:32:10 +0900 |
commit | 69dffd78a611e6cf5cfacb3edcddf2d45c787ff2 (patch) | |
tree | 3e16f9d6f8b153ef9713821fb8f8d221757b0476 /src | |
parent | 2750e196573ec7816cc966f2277ea5d14d770fca (diff) |
Do not assume that each character takes at least 1 column
Fixes #2163, though this is not a proper fix to the problem.
Diffstat (limited to 'src')
-rw-r--r-- | src/tui/light.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tui/light.go b/src/tui/light.go index 3062ab45..d051e67a 100644 --- a/src/tui/light.go +++ b/src/tui/light.go @@ -831,7 +831,7 @@ func wrapLine(input string, prefixLength int, max int, tabstop int) []wrappedLin width := 0 line := "" for _, r := range input { - w := util.Max(util.RuneWidth(r, prefixLength+width, 8), 1) + w := util.RuneWidth(r, prefixLength+width, 8) width += w str := string(r) if r == '\t' { |