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

Method endOfLine

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

Source from the content-addressed store, hash-verified

455 }
456
457 endOfLine(): Cursor {
458 const { line } = this.getPosition()
459 const column = this.measuredText.getLineLength(line)
460 const offset = this.getOffset({ line, column })
461 return new Cursor(this.measuredText, offset, 0)
462 }
463
464 // Helper methods for finding logical line boundaries
465 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