aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/modify-labels.go
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2022-08-08 22:21:41 +0200
committerRobin Jarry <robin@jarry.cc>2022-08-22 09:30:37 +0200
commitcfc19a7ec22a1c60f79427ddbabdf437705efbab (patch)
treefbc4d54f9edb082ff87c84f864df17514c8e34da /commands/msg/modify-labels.go
parentee961d3b1d5ef412b3daf0ef0b8c18ac8957b365 (diff)
downloadaerc-cfc19a7ec22a1c60f79427ddbabdf437705efbab.tar.gz
store: extract marking behavior and add tests
Separate the marking functions from the message store and extract the marking behavior into its own class with tests. Signed-off-by: Koni Marti <koni.marti@gmail.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands/msg/modify-labels.go')
-rw-r--r--commands/msg/modify-labels.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/msg/modify-labels.go b/commands/msg/modify-labels.go
index 655004cf..d0a5d6fa 100644
--- a/commands/msg/modify-labels.go
+++ b/commands/msg/modify-labels.go
@@ -57,7 +57,7 @@ func (ModifyLabels) Execute(aerc *widgets.Aerc, args []string) error {
switch msg := msg.(type) {
case *types.Done:
aerc.PushStatus("labels updated", 10*time.Second)
- store.ClearVisualMark()
+ store.Marker().ClearVisualMark()
case *types.Error:
aerc.PushError(msg.Error.Error())
}