mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-07 05:10:23 +09:00
Fix scroll problem
This commit is contained in:
@@ -129,6 +129,9 @@ func (w *BufWindow) Bottomline() int {
|
||||
func (w *BufWindow) Relocate() bool {
|
||||
b := w.Buf
|
||||
height := w.Bottomline() + 1 - w.StartLine
|
||||
if b.LinesNum() < w.Height {
|
||||
height = w.Height - 1
|
||||
}
|
||||
ret := false
|
||||
activeC := w.Buf.GetActiveCursor()
|
||||
cy := activeC.Y
|
||||
|
||||
Reference in New Issue
Block a user