MCPcopy Create free account
hub / github.com/codeaashu/claude-code / isPrecededByNewline

Method isPrecededByNewline

src/utils/Cursor.ts:1306–1307  ·  view source on GitHub ↗
(startOffset: number)

Source from the content-addressed store, hash-verified

1304 for (let i = 0; i < lines.length; i++) {
1305 const text = lines[i]!
1306 const isPrecededByNewline = (startOffset: number) =>
1307 i === 0 || (startOffset > 0 && this.text[startOffset - 1] === '\n')
1308
1309 if (text.length === 0) {
1310 // For blank lines, find the next newline character after the last one

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected