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>
This commit is contained in:
parent
83136234a4
commit
8e53d33061
1 changed files with 1 additions and 5 deletions
|
@ -86,10 +86,6 @@ func (term *Terminal) Destroy() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (term *Terminal) Invalidate() {
|
func (term *Terminal) Invalidate() {
|
||||||
term.invalidate()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (term *Terminal) invalidate() {
|
|
||||||
term.DoInvalidate(term)
|
term.DoInvalidate(term)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,7 +162,7 @@ func (term *Terminal) Focus(focus bool) {
|
||||||
_, x, y, style := term.vterm.GetCursor()
|
_, x, y, style := term.vterm.GetCursor()
|
||||||
term.ctx.SetCursor(x, y)
|
term.ctx.SetCursor(x, y)
|
||||||
term.ctx.SetCursorStyle(style)
|
term.ctx.SetCursorStyle(style)
|
||||||
term.invalidate()
|
term.Invalidate()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue