summaryrefslogtreecommitdiff
path: root/lisp/mail/rmailkwd.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/mail/rmailkwd.el')
-rw-r--r--lisp/mail/rmailkwd.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mail/rmailkwd.el b/lisp/mail/rmailkwd.el
index 048475233b7..94d67cb3a0b 100644
--- a/lisp/mail/rmailkwd.el
+++ b/lisp/mail/rmailkwd.el
@@ -144,7 +144,7 @@ With prefix argument N moves forward N messages with these labels."
(current rmail-current-message)
(regexp (concat " \\("
(mail-comma-list-regexp labels)
- "\\)")))
+ "\\)\\(,\\|\\'\\)")))
(while (and (> n 0) (< current rmail-total-messages))
(setq current (1+ current))
(if (string-match regexp (rmail-get-labels current))