mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-09 08:32:01 -07:00
Disallow preview scroll when the content just fits the window
This commit is contained in:
@@ -1055,7 +1055,7 @@ func (t *Terminal) printPreview() {
|
||||
}
|
||||
return fillRet == tui.FillContinue
|
||||
})
|
||||
t.previewer.more = t.previewer.more || t.pwindow.Y() == height-1 && t.pwindow.X() > 0
|
||||
t.previewer.more = t.previewer.more || t.pwindow.Y() == height-1 && t.pwindow.X() == t.pwindow.Width()
|
||||
if fillRet == tui.FillNextLine {
|
||||
continue
|
||||
} else if fillRet == tui.FillSuspend {
|
||||
|
Reference in New Issue
Block a user