aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/msg/mark.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/commands/msg/mark.go b/commands/msg/mark.go
index 13d6c928..939d456a 100644
--- a/commands/msg/mark.go
+++ b/commands/msg/mark.go
@@ -32,19 +32,23 @@ func (Mark) Execute(aerc *widgets.Aerc, args []string) error {
return err
}
marker := store.Marker()
- opts, _, err := getopt.Getopts(args, "atv")
+ opts, _, err := getopt.Getopts(args, "atvV")
if err != nil {
return err
}
var all bool
var toggle bool
var visual bool
+ var clearVisual bool
for _, opt := range opts {
switch opt.Option {
case 'a':
all = true
case 'v':
visual = true
+ clearVisual = true
+ case 'V':
+ visual = true
case 't':
toggle = true
}
@@ -70,7 +74,7 @@ func (Mark) Execute(aerc *widgets.Aerc, args []string) error {
}
return nil
case visual:
- marker.ToggleVisualMark()
+ marker.ToggleVisualMark(clearVisual)
return nil
default:
modFunc(selected.Uid)