OnLastLine returns true when we are at the last line.
()
| 426 | |
| 427 | // OnLastLine returns true when we are at the last line. |
| 428 | func (d *Document) OnLastLine() bool { |
| 429 | return d.CursorPositionRow() == (d.LineCount() - 1) |
| 430 | } |
| 431 | |
| 432 | // GetEndOfLinePosition returns relative position for the end of this line. |
| 433 | func (d *Document) GetEndOfLinePosition() int { |