Fix bottomline when softwrap enabled

This commit is contained in:
Zachary Yedidia
2019-12-25 19:44:58 -05:00
parent e66d01e989
commit f8218e0648

View File

@@ -121,7 +121,7 @@ func (w *BufWindow) Bottomline() int {
return h
}
l := w.LocFromVisual(buffer.Loc{0, w.Height})
l := w.LocFromVisual(buffer.Loc{0, w.Y + w.Height})
log.Println("Bottom line:", l.Y)
return l.Y