mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-17 15:53:39 -05:00
Simplify code
This commit is contained in:
@@ -1161,8 +1161,8 @@ func (w *LightWindow) fill(str string, resetCode string) FillReturn {
|
|||||||
if len(lines) > 1 {
|
if len(lines) > 1 {
|
||||||
sign := w.wrapSign
|
sign := w.wrapSign
|
||||||
width := w.wrapSignWidth
|
width := w.wrapSignWidth
|
||||||
if width > w.width-w.posx {
|
if width > w.width {
|
||||||
runes, truncatedWidth := util.Truncate(w.wrapSign, w.width-w.posx)
|
runes, truncatedWidth := util.Truncate(w.wrapSign, w.width)
|
||||||
sign = string(runes)
|
sign = string(runes)
|
||||||
width = truncatedWidth
|
width = truncatedWidth
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user