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

Method getLineLength

source code/utils/Cursor.ts:1426–1429  ·  view source on GitHub ↗
(line: number)

Source from the content-addressed store, hash-verified

1424 }
1425
1426 public getLineLength(line: number): number {
1427 const wrappedLine = this.getLine(line)
1428 return stringWidth(wrappedLine.text)
1429 }
1430
1431 public getPositionFromOffset(offset: number): Position {
1432 const lines = this.wrappedLines

Callers 1

endOfLineMethod · 0.80

Calls 1

getLineMethod · 0.95

Tested by

no test coverage detected