Skip to content
Myr

Disallow preview scroll when the content just fits the window

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 430e819 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/terminal.go+1 added-1 removed
1053 unmodified lines
1054 fillRet = t.pwindow.CFill(tui.ColNormal.Fg(), tui.ColNormal.Bg(), tui.AttrRegular, str)1055 }1056 return fillRet == tui.FillContinue1057 })1058 t.previewer.more = t.previewer.more || t.pwindow.Y() == height-1 && t.pwindow.X() > 01058 t.previewer.more = t.previewer.more || t.pwindow.Y() == height-1 && t.pwindow.X() == t.pwindow.Width()1059 if fillRet == tui.FillNextLine {1060 continue1061 } else if fillRet == tui.FillSuspend {1062 break
1015 unmodified lines