summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/km-magit.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/km-magit.el b/lisp/km-magit.el
index de39bc9..f204944 100644
--- a/lisp/km-magit.el
+++ b/lisp/km-magit.el
@@ -919,7 +919,11 @@ appending [M/N] to each entry."
(when cover
(find-file-other-window cover)
(goto-char (point-min))
- (re-search-forward (rx "Subject: [PATCH" (zero-or-more not-newline) "] "))
+ (re-search-forward (rx "Subject: ["
+ (zero-or-more (not (any "]" "\n")))
+ "PATCH"
+ (zero-or-more (not (any "]" "\n")))
+ "]" (one-or-more space)))
(setq buffer-read-only nil)
(auto-fill-mode 1)
(flyspell-mode 1)))))