()
| 417 | } |
| 418 | |
| 419 | firstNonBlankInLine(): Cursor { |
| 420 | const { line } = this.getPosition() |
| 421 | const lineText = this.measuredText.getWrappedText()[line] || '' |
| 422 | |
| 423 | const match = lineText.match(/^\s*\S/) |
| 424 | const column = match?.index ? match.index + match[0].length - 1 : 0 |
| 425 | const offset = this.getOffset({ line, column }) |
| 426 | |
| 427 | return new Cursor(this.measuredText, offset, 0) |
| 428 | } |
| 429 | |
| 430 | endOfLine(): Cursor { |
| 431 | const { line } = this.getPosition() |
nothing calls this directly
no test coverage detected