aboutsummaryrefslogtreecommitdiff
path: root/commands/msgview/toggle-key-passthrough.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msgview/toggle-key-passthrough.go')
-rw-r--r--commands/msgview/toggle-key-passthrough.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/commands/msgview/toggle-key-passthrough.go b/commands/msgview/toggle-key-passthrough.go
index 00a39559..fd284ec0 100644
--- a/commands/msgview/toggle-key-passthrough.go
+++ b/commands/msgview/toggle-key-passthrough.go
@@ -1,8 +1,6 @@
package msgview
import (
- "errors"
-
"git.sr.ht/~rjarry/aerc/lib/state"
"git.sr.ht/~rjarry/aerc/widgets"
)
@@ -22,9 +20,6 @@ func (ToggleKeyPassthrough) Complete(aerc *widgets.Aerc, args []string) []string
}
func (ToggleKeyPassthrough) Execute(aerc *widgets.Aerc, args []string) error {
- if len(args) != 1 {
- return errors.New("Usage: toggle-key-passthrough")
- }
mv, _ := aerc.SelectedTabContent().(*widgets.MessageViewer)
keyPassthroughEnabled := mv.ToggleKeyPassthrough()
if acct := mv.SelectedAccount(); acct != nil {