[PR #3867] fix(autocomplete): standardize cursor handling for input #10784

Closed
opened 2026-02-16 18:15:32 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/3867

State: closed
Merged: No


Replace visualCursor.offset with cursorOffset in Autocomplete to ensure consistent behavior for index calculations, insertion, and visibility logic. Fixes newline handling edge case for prompt autocomplete display and insertion.

closes #3860

https://github.com/user-attachments/assets/724f496b-7d25-4984-978c-c7d5897d55c4

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3867 **State:** closed **Merged:** No --- Replace visualCursor.offset with cursorOffset in Autocomplete to ensure consistent behavior for index calculations, insertion, and visibility logic. Fixes newline handling edge case for prompt autocomplete display and insertion. closes #3860 https://github.com/user-attachments/assets/724f496b-7d25-4984-978c-c7d5897d55c4
yindo added the pull-request label 2026-02-16 18:15:32 -05:00
yindo closed this issue 2026-02-16 18:15:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10784