diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2024-02-12 06:26:15 -0600 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-02-12 13:48:42 +0100 |
commit | 63b9706441719b53b3504733c51c2387fce9019d (patch) | |
tree | d541ead04cfe5082631c7bfd6bd019128cc8cc0b /commands/util.go | |
parent | 4e26faf498b84b90ecd1af3bd6c6e1f2f3e44a6e (diff) | |
download | aerc-63b9706441719b53b3504733c51c2387fce9019d.tar.gz |
aerc: change event interfaces to vaxis events
Modify the function signature of Event and MouseEvent interfaces to
accept vaxis events. Note that because a vaxis event is an empty
interface, the implementations are not affected and the events are
delivered as they were before
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands/util.go')
-rw-r--r-- | commands/util.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/util.go b/commands/util.go index af8d3dfa..0f6c7cb6 100644 --- a/commands/util.go +++ b/commands/util.go @@ -19,7 +19,7 @@ import ( "git.sr.ht/~rjarry/aerc/models" "git.sr.ht/~rjarry/aerc/worker/types" "git.sr.ht/~rjarry/go-opt" - "github.com/gdamore/tcell/v2" + "git.sr.ht/~rockorager/vaxis" ) // QuickTerm is an ephemeral terminal for running a single command and quitting. @@ -43,7 +43,7 @@ func QuickTerm(args []string, stdin io.Reader) (*app.Terminal, error) { } else { app.PushStatus("Process complete, press any key to close.", 10*time.Second) - term.OnEvent = func(event tcell.Event) bool { + term.OnEvent = func(event vaxis.Event) bool { app.RemoveTab(term, true) return true } |