summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--notmuch.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/notmuch.el b/notmuch.el
index 89089c5..513b7d9 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -113,7 +113,8 @@
Before moving, also remove the \"unread\" tag from the current message."
(interactive)
- (notmuch-show-remove-tag "unread")
+ (if (member "unread" (notmuch-show-get-tags))
+ (notmuch-show-remove-tag "unread"))
; First, ensure we get off the current message marker
(if (not (eobp))
(forward-char))