summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/km-magit.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/km-magit.el b/lisp/km-magit.el
index 07e1bbc..a42b22c 100644
--- a/lisp/km-magit.el
+++ b/lisp/km-magit.el
@@ -73,7 +73,9 @@ project, or 3) an commit object for the hash at point doesn't
exist in the current project."
(interactive "P")
(if (save-excursion (skip-chars-backward "[[:xdigit:]]")
- (looking-at "\\b[[:xdigit:]]\\{4,40\\}\\b"))
+ (looking-at (rx word-boundary
+ (repeat 4 40 xdigit)
+ word-boundary)))
(let* ((hash (match-string-no-properties 0))
(project
(and (or choose-project