emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/consult 90876de 2/2: consult-completion-in-region: Chec


From: ELPA Syncer
Subject: [elpa] externals/consult 90876de 2/2: consult-completion-in-region: Check for ./ and ../
Date: Sat, 10 Jul 2021 12:57:07 -0400 (EDT)

branch: externals/consult
commit 90876de33a9dee7743000736de5c9704a7c84e8e
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    consult-completion-in-region: Check for ./ and ../
---
 consult.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/consult.el b/consult.el
index 4350814..adf59ea 100644
--- a/consult.el
+++ b/consult.el
@@ -2114,7 +2114,7 @@ These configuration options are supported:
                              (lambda (_inp cand)
                                (substitute-in-file-name cand)))
                             ;; Ensure that ./ prefix is kept for the shell 
(#356)
-                            ((string-prefix-p "./" initial)
+                            ((string-match-p "\\`\\.\\.?/" initial)
                              (lambda (_inp cand)
                                (setq cand (file-relative-name 
(substitute-in-file-name cand)))
                                (if (string-match-p "\\`\\.\\.?/" cand) cand 
(concat "./" cand))))



reply via email to

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