mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #907] TextView can now scroll past the end of the text #658
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#658
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?
Originally created by @polothy on GitHub (Oct 31, 2023).
Original GitHub issue: https://github.com/rivo/tview/issues/907
Greetings!
Noticed a behavior change after upgrading recently and I'm not sure if it is intentional or configurable. It's easy to reproduce with the demo code, specifically I used this:
If I checkout
892d1a2, I get the behavior that I'm familiar with, the text view doesn't scroll unless I make my terminal window really small. And then it'll scroll up/down to the start/end of the text.If I checkout master (
2dfe060117) and re-run the program and then hit down arrow, I can start scrolling down past the end of the text. I can scroll until nothing is shown as well.Another interesting key combo on master branch, if I hit End key, then down arrow, it's the old behavior (doesn't scroll down anymore). But if I hit up arrow then hit down arrow, I can start scrolling past the end again.
I suspect
github.com/rivo/tview@7344139b55introduced the change, but I couldn't spot anything.Again, sorry if this is intentional - maybe I need to set something on my end to change behavior. Either way, thanks! Great package!
@rivo commented on GitHub (Nov 2, 2023):
Thank you for reporting this. The adjustment of the line offset must have gotten lost in the recent changes. The latest commit should fix this.
@polothy commented on GitHub (Nov 3, 2023):
Thanks so much, I'll try it out on Monday!
@polothy commented on GitHub (Nov 6, 2023):
Fix worked, thanks!