mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 16:24:18 +00:00
Don't call match-string if no match was found
This commit is contained in:
parent
101d502131
commit
77d09dd714
1 changed files with 4 additions and 5 deletions
|
|
@ -141,10 +141,9 @@
|
|||
(defun projectile-dont-switch-when-conf-available (x)
|
||||
(if-let ((dir (lls/conf-get-safe 'root-dir))
|
||||
(tools-dir
|
||||
(progn
|
||||
(string-match (rx line-start
|
||||
(when (string-match (rx line-start
|
||||
"/scratch"
|
||||
(group "/benson/tools" (+ (not "/")) "/"))
|
||||
(group "/benson/tools" (* (not "/")) "/"))
|
||||
dir)
|
||||
(match-string 1 dir))))
|
||||
(remove-if #'(lambda (path)
|
||||
|
|
|
|||
Loading…
Reference in a new issue