MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / firstNonBlankInLogicalLine

Method firstNonBlankInLogicalLine

source code/utils/Cursor.ts:505–511  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

503 }
504
505 firstNonBlankInLogicalLine(): Cursor {
506 const { start, end } = this.getLogicalLineBounds()
507 const lineText = this.text.slice(start, end)
508 const match = lineText.match(/\S/)
509 const offset = start + (match?.index ?? 0)
510 return new Cursor(this.measuredText, offset, 0)
511 }
512
513 upLogicalLine(): Cursor {
514 const { start: currentStart } = this.getLogicalLineBounds()

Callers 2

applySingleMotionFunction · 0.80
handleNormalInputFunction · 0.80

Calls 1

getLogicalLineBoundsMethod · 0.95

Tested by

no test coverage detected