diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-10-07 11:00:31 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-10-12 22:16:40 +0200 |
commit | ba24e92062f1a9b38065d503fd1dde749c27a56c (patch) | |
tree | d1a2981f8f9bda50a070b50c688388fe2130f770 /widgets/exline.go | |
parent | 34014d3ceeebe8a9c131213fa56d1977fbc26b4a (diff) | |
download | aerc-ba24e92062f1a9b38065d503fd1dde749c27a56c.tar.gz |
invalidatable: cleanup dead code
Remove invalidatable type and all associated calls. All items can
directly invalidate the UI.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets/exline.go')
-rw-r--r-- | widgets/exline.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/widgets/exline.go b/widgets/exline.go index 8d3c7ca6..789ccde8 100644 --- a/widgets/exline.go +++ b/widgets/exline.go @@ -9,7 +9,6 @@ import ( ) type ExLine struct { - ui.Invalidatable commit func(cmd string) finish func() tabcomplete func(cmd string) ([]string, string) @@ -34,9 +33,6 @@ func NewExLine(conf *config.AercConfig, cmd string, commit func(cmd string), fin input: input, conf: conf, } - input.OnInvalidate(func(d ui.Drawable) { - exline.Invalidate() - }) return exline } @@ -57,14 +53,11 @@ func NewPrompt(conf *config.AercConfig, prompt string, commit func(text string), cmdHistory: &nullHistory{input: input}, input: input, } - input.OnInvalidate(func(d ui.Drawable) { - exline.Invalidate() - }) return exline } func (ex *ExLine) Invalidate() { - ex.DoInvalidate(ex) + ui.Invalidate() } func (ex *ExLine) Draw(ctx *ui.Context) { |