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

Method endOfLine

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

Source from the content-addressed store, hash-verified

428 }
429
430 endOfLine(): Cursor {
431 const { line } = this.getPosition()
432 const column = this.measuredText.getLineLength(line)
433 const offset = this.getOffset({ line, column })
434 return new Cursor(this.measuredText, offset, 0)
435 }
436
437 // Helper methods for finding logical line boundaries
438 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