mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-16 18:25:08 +00:00
Do not assume that each character takes at least 1 column
Fixes #2163, though this is not a proper fix to the problem.
This commit is contained in:
parent
2750e19657
commit
69dffd78a6
@ -831,7 +831,7 @@ func wrapLine(input string, prefixLength int, max int, tabstop int) []wrappedLin
|
|||||||
width := 0
|
width := 0
|
||||||
line := ""
|
line := ""
|
||||||
for _, r := range input {
|
for _, r := range input {
|
||||||
w := util.Max(util.RuneWidth(r, prefixLength+width, 8), 1)
|
w := util.RuneWidth(r, prefixLength+width, 8)
|
||||||
width += w
|
width += w
|
||||||
str := string(r)
|
str := string(r)
|
||||||
if r == '\t' {
|
if r == '\t' {
|
||||||
|
Loading…
Reference in New Issue
Block a user