Skip to content
Snippets Groups Projects
Unverified Commit 69dffd78 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Do not assume that each character takes at least 1 column

Fixes #2163, though this is not a proper fix to the problem.
parent 2750e196
No related branches found
No related tags found
No related merge requests found
......@@ -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' {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment