use lineheight rather than buffer length

This commit is contained in:
Jesse Duffield 2018-09-22 13:44:48 +10:00
parent 3101c50582
commit 619c28ce56
4 changed files with 7 additions and 7 deletions

View file

@ -447,8 +447,8 @@ func (v *View) ViewBufferLines() []string {
return lines
}
func (v *View) ViewLinesHeight() int {
return len(v.viewLines)
func (v *View) LinesHeight() int {
return len(v.lines)
}
// ViewBuffer returns a string with the contents of the view's buffer that is