branch: elpa/with-editor
commit cb47cdb6ff4f29cfcc2c2215a4472c315f3124a5
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    Use string-search instead of string-match-p
---
 lisp/with-editor.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/with-editor.el b/lisp/with-editor.el
index 6857dd744c..b7ed9c4f29 100644
--- a/lisp/with-editor.el
+++ b/lisp/with-editor.el
@@ -165,7 +165,7 @@ please see 
https://github.com/magit/magit/wiki/Emacsclient.";))))
         (let ((dir (expand-file-name "bin" invocation-directory)))
           (when (file-directory-p dir)
             (push dir path)))
-        (when (string-match-p "Cellar" invocation-directory)
+        (when (string-search "Cellar" invocation-directory)
           (let ((dir (expand-file-name "../../../bin" invocation-directory)))
             (when (file-directory-p dir)
               (push dir path))))))

Reply via email to