Merge branch 'fix-newline-end-of-view-issue' of github.com:liamg/aminal into fix-newline-end-of-view-issue

This commit is contained in:
Liam Galvin 2019-01-04 13:44:37 +00:00
commit 88f29ee9f5
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++ {