()
| 442 | } |
| 443 | |
| 444 | firstNonBlankInLine(): Cursor { |
| 445 | const { line } = this.getPosition() |
| 446 | const lineText = this.measuredText.getWrappedText()[line] || '' |
| 447 | |
| 448 | const match = lineText.match(/^\s*\S/) |
| 449 | const column = match?.index ? match.index + match[0].length - 1 : 0 |
| 450 | const offset = this.getOffset({ line, column }) |
| 451 | |
| 452 | return new Cursor(this.measuredText, offset, 0) |
| 453 | } |
| 454 | |
| 455 | endOfLine(): Cursor { |
| 456 | const { line } = this.getPosition() |
nothing calls this directly
no test coverage detected