MCPcopy
hub / github.com/codeaashu/claude-code / endOfLine

Method endOfLine

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

Source from the content-addressed store, hash-verified

453 }
454
455 endOfLine(): Cursor {
456 const { line } = this.getPosition()
457 const column = this.measuredText.getLineLength(line)
458 const offset = this.getOffset({ line, column })
459 return new Cursor(this.measuredText, offset, 0)
460 }
461
462 // Helper methods for finding logical line boundaries
463 private findLogicalLineStart(fromOffset: number = this.offset): number {

Callers 3

deleteToLineEndMethod · 0.95
useTextInputFunction · 0.80
mapKeyFunction · 0.80

Calls 3

getPositionMethod · 0.95
getOffsetMethod · 0.95
getLineLengthMethod · 0.80

Tested by

no test coverage detected