diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-09-26 18:26:36 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-09-29 21:21:00 +0200 |
commit | 8e53d330614fb5c526372e6bdf508341bb6f154c (patch) | |
tree | fda868cce01fc4f88d84c1cd3d4610f70d36180d /widgets/terminal.go | |
parent | 83136234a4e93b50d1079765bb4bb04d3322a4c7 (diff) | |
download | aerc-8e53d330614fb5c526372e6bdf508341bb6f154c.tar.gz |
terminal: remove invalidate method
The terminal widget has two invalidation methods, one exported and one
private. The private one does nothing special.
Remove the private method and only use the exported method.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets/terminal.go')
-rw-r--r-- | widgets/terminal.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/widgets/terminal.go b/widgets/terminal.go index 5c67e32a..cd90ed7a 100644 --- a/widgets/terminal.go +++ b/widgets/terminal.go @@ -86,10 +86,6 @@ func (term *Terminal) Destroy() { } func (term *Terminal) Invalidate() { - term.invalidate() -} - -func (term *Terminal) invalidate() { term.DoInvalidate(term) } @@ -166,7 +162,7 @@ func (term *Terminal) Focus(focus bool) { _, x, y, style := term.vterm.GetCursor() term.ctx.SetCursor(x, y) term.ctx.SetCursorStyle(style) - term.invalidate() + term.Invalidate() } } } |