mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-22 04:45:14 +00:00
Fix preview window incorrectly rendering empty line at the bottom
This commit is contained in:
parent
ee5302fb2d
commit
5cce17e80a
@ -2722,10 +2722,14 @@ Loop:
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
if lbg >= 0 {
|
if lbg >= 0 {
|
||||||
t.pwindow.CFill(-1, lbg, tui.AttrRegular,
|
fillRet = t.pwindow.CFill(-1, lbg, tui.AttrRegular,
|
||||||
strings.Repeat(" ", t.pwindow.Width()-t.pwindow.X())+"\n")
|
strings.Repeat(" ", t.pwindow.Width()-t.pwindow.X())+"\n")
|
||||||
} else {
|
} else {
|
||||||
t.pwindow.Fill("\n")
|
fillRet = t.pwindow.Fill("\n")
|
||||||
|
}
|
||||||
|
if fillRet == tui.FillSuspend {
|
||||||
|
t.previewed.filled = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
lineNo++
|
lineNo++
|
||||||
|
Loading…
Reference in New Issue
Block a user