mirror of https://github.com/liamg/aminal.git
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:
commit
88f29ee9f5
|
@ -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++ {
|
||||
|
|
Loading…
Reference in New Issue