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

Method findLogicalLineStart

src/utils/Cursor.ts:463–466  ·  view source on GitHub ↗
(fromOffset: number = this.offset)

Source from the content-addressed store, hash-verified

461
462 // Helper methods for finding logical line boundaries
463 private findLogicalLineStart(fromOffset: number = this.offset): number {
464 const prevNewline = this.text.lastIndexOf('\n', fromOffset - 1)
465 return prevNewline === -1 ? 0 : prevNewline + 1
466 }
467
468 private findLogicalLineEnd(fromOffset: number = this.offset): number {
469 const nextNewline = this.text.indexOf('\n', fromOffset)

Callers 3

getLogicalLineBoundsMethod · 0.95
startOfLogicalLineMethod · 0.95
upLogicalLineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected