mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-21 12:25:09 +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
|
||||
}
|
||||
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")
|
||||
} else {
|
||||
t.pwindow.Fill("\n")
|
||||
fillRet = t.pwindow.Fill("\n")
|
||||
}
|
||||
if fillRet == tui.FillSuspend {
|
||||
t.previewed.filled = true
|
||||
break
|
||||
}
|
||||
}
|
||||
lineNo++
|
||||
|
Loading…
Reference in New Issue
Block a user