mirror of https://github.com/liamg/aminal.git
Fix newline at end of buffer issue
This commit is contained in:
parent
bf90bfb334
commit
336dd7ea55
|
@ -719,6 +719,14 @@ func (buffer *Buffer) NewLine() {
|
|||
|
||||
buffer.cursorX = 0
|
||||
buffer.Index()
|
||||
|
||||
for {
|
||||
line := buffer.getCurrentLine()
|
||||
if !line.wrapped {
|
||||
break
|
||||
}
|
||||
buffer.Index()
|
||||
}
|
||||
}
|
||||
|
||||
func (buffer *Buffer) MovePosition(x int16, y int16) {
|
||||
|
|
Loading…
Reference in New Issue