(forceCursorToMargin bool)
| 565 | } |
| 566 | |
| 567 | func (buffer *Buffer) newLineEx(forceCursorToMargin bool) { |
| 568 | |
| 569 | if buffer.IsNewLineMode() || forceCursorToMargin { |
| 570 | buffer.cursorPosition.Col = 0 |
| 571 | } |
| 572 | buffer.index() |
| 573 | |
| 574 | for { |
| 575 | line := buffer.getCurrentLine() |
| 576 | if !line.wrapped { |
| 577 | break |
| 578 | } |
| 579 | buffer.index() |
| 580 | } |
| 581 | } |
| 582 | |
| 583 | func (buffer *Buffer) movePosition(x int16, y int16) { |
| 584 |
no test coverage detected