summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/km-magit.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/km-magit.el b/lisp/km-magit.el
index 58c8332..4df9d0c 100644
--- a/lisp/km-magit.el
+++ b/lisp/km-magit.el
@@ -71,8 +71,8 @@ argument CHOOSE-PROJECT is non-nil, 2) there is no current
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 "A-z0-9")
- (looking-at "\\b[A-z0-9]\\{4,40\\}\\b"))
+ (if (save-excursion (skip-chars-backward "a-f0-9")
+ (looking-at "\\b[a-f0-9]\\{4,40\\}\\b"))
(let* ((hash (match-string-no-properties 0))
(project
(and (or choose-project