Skip to content

Commit

Permalink
Merge pull request #2786 from mstenek/master
Browse files Browse the repository at this point in the history
mu4e-actions: ensure empty tag removal on message retagging.
  • Loading branch information
djcb authored Nov 14, 2024
2 parents 7e798f5 + f6f389a commit 722c1b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mu4e/mu4e-actions.el
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ would add \"tag\" and \"long tag\", and remove \"oldtag\"."
(t
(setq taglist (push tag taglist)))))

(setq taglist (sort (delete-dups taglist) 'string<))
(setq taglist (delete "" (sort (delete-dups taglist) 'string<)))
(setq tagstr (mapconcat 'identity taglist sep))

(setq tagstr (replace-regexp-in-string "[\\&]" "\\\\\\&" tagstr))
Expand Down

0 comments on commit 722c1b8

Please sign in to comment.