[GH-ISSUE #941] Bug in TextView demo: no highlighted regions in view #688

Closed
opened 2026-03-04 01:07:03 +03:00 by kerem · 1 comment
Owner

Originally created by @ok-go on GitHub (Jan 19, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/941

First case:
Run demo -> Press Enter.
Expected: first region highlighted.
Actual: nothing happens

Second case:
Run demo -> Click on to first region -> First region highlighted -> Press Tab
Expected: jump to next region
Actual: highlights disappeared

Bug is reproduced in both cases when text fits into the view and doesn't.

Fix in demo: remove ScrollToHighlight call or disable scrolling on TextView

tview version: 742cf08619
macOS: 14.1.1
app: iTerm2

Originally created by @ok-go on GitHub (Jan 19, 2024). Original GitHub issue: https://github.com/rivo/tview/issues/941 First case: Run demo -> Press Enter. Expected: first region highlighted. Actual: nothing happens Second case: Run demo -> Click on to first region -> First region highlighted -> Press Tab Expected: jump to next region Actual: highlights disappeared Bug is reproduced in both cases when text fits into the view and doesn't. Fix in demo: remove ScrollToHighlight call or disable scrolling on TextView tview version: 742cf086196e macOS: 14.1.1 app: iTerm2
kerem closed this issue 2026-03-04 01:07:03 +03:00
Author
Owner

@rivo commented on GitHub (Jan 20, 2024):

Thanks for notifying me of this. I made a mistake in a commit yesterday. This should be fixed now.

<!-- gh-comment-id:1902051900 --> @rivo commented on GitHub (Jan 20, 2024): Thanks for notifying me of this. I made a mistake in a commit yesterday. This should be fixed now.
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/tview#688
No description provided.