[GH-ISSUE #549] bug: selection changes on textarea viewport change #916

Closed
opened 2026-03-14 09:01:50 +03:00 by kerem · 4 comments
Owner

Originally created by @danolekh on GitHub (Jan 18, 2026).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/549

https://github.com/user-attachments/assets/b85ae67f-1282-4aaf-9659-ad6fb1221e2f

Originally created by @danolekh on GitHub (Jan 18, 2026). Original GitHub issue: https://github.com/anomalyco/opentui/issues/549 https://github.com/user-attachments/assets/b85ae67f-1282-4aaf-9659-ad6fb1221e2f
kerem closed this issue 2026-03-14 09:01:55 +03:00
Author
Owner

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

Darn, that was probably not test covered and the other changes broke that. Can you reproduce that in a failing test and I'll fix it?

<!-- gh-comment-id:3768048239 --> @kommander commented on GitHub (Jan 19, 2026): Darn, that was probably not test covered and the other changes broke that. Can you reproduce that in a failing test and I'll fix it?
Author
Owner

@danolekh commented on GitHub (Jan 20, 2026):

yes sir, I added it to my PR #558 (hope its ok)
I wasnt able to reproduce it using renderOnce, it feels like something in the render loop updates selection based on cursor position when it shouldn't

<!-- gh-comment-id:3771848957 --> @danolekh commented on GitHub (Jan 20, 2026): yes sir, I added it to my PR #558 (hope its ok) I wasnt able to reproduce it using renderOnce, it feels like something in the render loop updates selection based on cursor position when it shouldn't
Author
Owner

@danolekh commented on GitHub (Jan 20, 2026):

also, I dont think its a regression,
I was able to reproduce it on a79281d69e commit (0.1.63 release, 1mo old)

<!-- gh-comment-id:3771929781 --> @danolekh commented on GitHub (Jan 20, 2026): also, I dont think its a regression, I was able to reproduce it on a79281d69efe79e8da81c68e16523e6f420eaac3 commit (0.1.63 release, 1mo old)
Author
Owner

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

This should be fixed now then with #558 ?

<!-- gh-comment-id:3800798667 --> @kommander commented on GitHub (Jan 26, 2026): This should be fixed now then with #558 ?
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#916
No description provided.