Fix newline at end of buffer issue

This commit is contained in:
Liam Galvin 2019-01-04 13:39:41 +00:00
parent bf90bfb334
commit 336dd7ea55
1 changed files with 8 additions and 0 deletions

View File

@ -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) {