[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master af0799a 393/399: counsel.el (counsel-git-log-show-commit-a

From: Oleh Krehel
Subject: [elpa] master af0799a 393/399: counsel.el (counsel-git-log-show-commit-action): Fix match end.
Date: Sat, 20 Jul 2019 14:58:06 -0400 (EDT)

branch: master
commit af0799a00a7e7fb078d07b2f6b59dd15e0872c2a
Author: Brian Leung <address@hidden>
Commit: Brian Leung <address@hidden>

    counsel.el (counsel-git-log-show-commit-action): Fix match end.
    Something like "2c4e894... (refs/pullreqs/4638)" now gets cut off at
    the space, instead of the newline character.
 counsel.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/counsel.el b/counsel.el
index feb3669..59085c4 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1620,7 +1620,7 @@ done") "\n" t)))
 (defun counsel-git-log-show-commit-action (log-entry)
   "Visit the commit corresponding to LOG-ENTRY."
   (require 'magit-diff)
-  (let ((commit (substring-no-properties log-entry 0 (string-match-p "\n" 
+  (let ((commit (substring-no-properties log-entry 0 (string-match-p "\\W" 
     (magit-show-commit commit)))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]