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

Method getLineLength

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

Source from the content-addressed store, hash-verified

1397 }
1398
1399 public getLineLength(line: number): number {
1400 const wrappedLine = this.getLine(line)
1401 return stringWidth(wrappedLine.text)
1402 }
1403
1404 public getPositionFromOffset(offset: number): Position {
1405 const lines = this.wrappedLines

Callers 1

endOfLineMethod · 0.80

Calls 1

getLineMethod · 0.95

Tested by

no test coverage detected