diff options
Diffstat (limited to 'commands')
-rw-r--r-- | commands/redraw.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/commands/redraw.go b/commands/redraw.go new file mode 100644 index 00000000..b43e45e3 --- /dev/null +++ b/commands/redraw.go @@ -0,0 +1,22 @@ +package commands + +import "git.sr.ht/~rjarry/aerc/lib/ui" + +type Redraw struct{} + +func init() { + Register(Redraw{}) +} + +func (Redraw) Context() CommandContext { + return GLOBAL +} + +func (Redraw) Aliases() []string { + return []string{"redraw"} +} + +func (Redraw) Execute(args []string) error { + ui.QueueRefresh() + return nil +} |