[GH-ISSUE #566] bug: ctrl+w on a line with tabs deletes to a wrong char #155

Closed
opened 2026-03-02 23:44:56 +03:00 by kerem · 1 comment
Owner

Originally created by @CruelAddict on GitHub (Jan 21, 2026).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/566

Every 2+ col wide grapheme in a line makes ctrl + w / deleteWordBackward delete extra characters.

I've recorded a video where you can see me pressing ctrl + w against an indented string on the current master, vs on a branch where i fixed the issue

https://github.com/user-attachments/assets/27c326cc-02a3-4144-b2b3-6f911c6bc47b

The bug is caused by code looking for word boundaries not converting char offset to display column

Originally created by @CruelAddict on GitHub (Jan 21, 2026). Original GitHub issue: https://github.com/anomalyco/opentui/issues/566 Every 2+ col wide grapheme in a line makes ctrl + w / deleteWordBackward delete extra characters. I've recorded a video where you can see me pressing ctrl + w against an indented string on the current master, vs on a branch where i fixed the issue https://github.com/user-attachments/assets/27c326cc-02a3-4144-b2b3-6f911c6bc47b The bug is caused by code looking for word boundaries not converting char offset to display column
kerem 2026-03-02 23:44:56 +03:00
  • closed this issue
  • added the
    core
    bug
    labels
Author
Owner

@kommander commented on GitHub (Jan 24, 2026):

#567 should fix this.

<!-- gh-comment-id:3795268614 --> @kommander commented on GitHub (Jan 24, 2026): #567 should fix this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#155
No description provided.