mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[PR #336] [CLOSED] Don't skip regions at end of line #912
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#912
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rivo/tview/pull/336
Author: @SamWhited
Created: 8/24/2019
Status: ❌ Closed
Base:
master← Head:fix_end_highlight📝 Commits (1)
dbf8505Don't skip regions at end of line📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
textview.go(+1 -1)📄 Description
Currently if a region is the last thing on a line, it is skipped. eg. if the "highlight" region is highlighted, the entire text below will be highlighted even though it should have ended at the next region:
This fixes an off-by-one issue that appears to have been causing the problem.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.