MCPcopy Index your code
hub / github.com/codeaashu/claude-code / firstNonBlankInLogicalLine

Method firstNonBlankInLogicalLine

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

Source from the content-addressed store, hash-verified

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

Callers 2

applySingleMotionFunction · 0.80
handleNormalInputFunction · 0.80

Calls 1

getLogicalLineBoundsMethod · 0.95

Tested by

no test coverage detected