summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2019-05-21 16:35:45 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2019-05-21 16:35:45 +0900
commit0e3e6ac44201b2f051ff1987a63ee6b649070d46 (patch)
treef279a4bfcd9312d3ae15b1413ac9b900e6babf5a /src
parent430e8193e07952bc09f0469affdb04a67d1a71e7 (diff)
downloadfzf-0e3e6ac44201b2f051ff1987a63ee6b649070d46.tar.gz
Disallow preview scroll when the content just fits the window
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terminal.go b/src/terminal.go
index 06623b28..58cfbcad 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -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 {