mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[PR #452] [CLOSED] TextView: Add SetMaxLines() #959
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#959
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/452
Author: @jpeletier
Created: 5/31/2020
Status: ❌ Closed
Base:
master← Head:setmaxlines📝 Commits (1)
89469eeTextView: Add SetMaxLines()📊 Changes
2 files changed (+82 additions, -0 deletions)
View changed files
📝
textview.go(+25 -0)➕
textview_test.go(+57 -0)📄 Description
Fixes #451
This PR implements a new method
TextView.SetMaxLines()that limits the amount of lines that can be added to a buffer. This is useful to use TextView to show scrolling content, such as log output.If this method is not used, the default is "no limit", thus this method is backward-compatible and does not affect existing behavior of the TextView
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.