Merge branch 'master' into fix-newline-end-of-view-issue

This commit is contained in:
Liam Galvin 2019-01-04 13:40:18 +00:00 committed by GitHub
commit fd0694c466
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -911,6 +911,9 @@ func (buffer *Buffer) EraseDisplayToCursor() {
line := buffer.getCurrentLine()
for i := 0; i < int(buffer.cursorX); i++ {
if i >= len(line.cells) {
break
}
line.cells[i].erase()
}
for i := uint16(0); i < buffer.cursorY; i++ {