Document lineStartIndexes causes index out of range panic with empty documents
Document lineStartIndexes causes index out of range panic with empty documents: a task in harness-adapters: Agentic coding environments (Harbor dataset). When working with empty documents or documents with no line breaks, the lineStartIndexes() method causes a panic due to an index out of range…
The task
When working with empty documents or documents with no line breaks, the `lineStartIndexes()` method causes a panic due to an index out of range error. This affects cursor movement operations on empty buffers.
Part of harness-hub/harness-adapters.