mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-23 07:08:27 +00:00
parent
a4bc08f5a3
commit
8255aa23f4
@ -8,6 +8,7 @@ CHANGELOG
|
||||
fzf --color fg:3,fg+:11
|
||||
fzf --color fg:yellow,fg+:bright-yellow
|
||||
```
|
||||
- Fix bug where `--read0` not properly displaying long lines
|
||||
|
||||
0.27.1
|
||||
------
|
||||
|
@ -3,6 +3,7 @@ package util
|
||||
import (
|
||||
"math"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/mattn/go-isatty"
|
||||
@ -21,7 +22,8 @@ func RunesWidth(runes []rune, prefixWidth int, tabstop int, limit int) (int, int
|
||||
if len(rs) == 1 && rs[0] == '\t' {
|
||||
w = tabstop - (prefixWidth+width)%tabstop
|
||||
} else {
|
||||
w = runewidth.StringWidth(string(rs))
|
||||
s := string(rs)
|
||||
w = runewidth.StringWidth(s) + strings.Count(s, "\n")
|
||||
}
|
||||
width += w
|
||||
if limit > 0 && width > limit {
|
||||
|
Loading…
x
Reference in New Issue
Block a user