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

Method firstNonBlankInLogicalLine

src/utils/Cursor.ts:478–484  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

476 }
477
478 firstNonBlankInLogicalLine(): Cursor {
479 const { start, end } = this.getLogicalLineBounds()
480 const lineText = this.text.slice(start, end)
481 const match = lineText.match(/\S/)
482 const offset = start + (match?.index ?? 0)
483 return new Cursor(this.measuredText, offset, 0)
484 }
485
486 upLogicalLine(): Cursor {
487 const { start: currentStart } = this.getLogicalLineBounds()

Callers 2

applySingleMotionFunction · 0.80
handleNormalInputFunction · 0.80

Calls 1

getLogicalLineBoundsMethod · 0.95

Tested by

no test coverage detected