diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2024-08-18 11:37:50 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2024-08-18 11:38:37 +0900 |
| commit | 5cce17e80a326680b503a51aadcf570cc089ea5c (patch) | |
| tree | dfd7a334c5e4911b4484392ac6971730569064da | |
| parent | ee5302fb2d760d44534ba2756e0cb764191d3e38 (diff) | |
| download | fzf-5cce17e80a326680b503a51aadcf570cc089ea5c.tar.gz | |
Fix preview window incorrectly rendering empty line at the bottom
| -rw-r--r-- | src/terminal.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/terminal.go b/src/terminal.go index 1359f35c..3993bce9 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -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++ |
