branch: externals/consult commit 90876de33a9dee7743000736de5c9704a7c84e8e Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@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))))