1
0
mirror of https://github.com/taigrr/wtf synced 2026-04-02 03:38:52 -07:00

Update dependencies

This commit is contained in:
Chris Cummer
2018-07-31 10:20:12 -07:00
parent 015d7736db
commit 869cb0b9da
23 changed files with 1605 additions and 76 deletions

View File

@@ -310,6 +310,12 @@ func (t *TextView) ScrollToEnd() *TextView {
return t
}
// GetScrollOffset returns the number of rows and columns that are skipped at
// the top left corner when the text view has been scrolled.
func (t *TextView) GetScrollOffset() (row, column int) {
return t.lineOffset, t.columnOffset
}
// Clear removes all text from the buffer.
func (t *TextView) Clear() *TextView {
t.buffer = nil