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

Method getLineLength

src/utils/Cursor.ts:1424–1427  ·  view source on GitHub ↗
(line: number)

Source from the content-addressed store, hash-verified

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

Callers 1

endOfLineMethod · 0.80

Calls 1

getLineMethod · 0.95

Tested by

no test coverage detected