[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vertico da60323 3/4: Use more general regular expressio
From: |
Protesilaos Stavrou |
Subject: |
[elpa] externals/vertico da60323 3/4: Use more general regular expression to determine remote path |
Date: |
Sat, 22 May 2021 16:38:55 -0400 (EDT) |
branch: externals/vertico
commit da603237ab8d2502c232cfa441da504cc9345581
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Use more general regular expression to determine remote path
See Marginalia
---
vertico.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vertico.el b/vertico.el
index 83f753d..fe96a36 100644
--- a/vertico.el
+++ b/vertico.el
@@ -308,7 +308,7 @@
;; If Tramp is used, do not compute the candidates in an interruptible
fashion,
;; since this will break the Tramp password and user name prompts (See
#23).
(if (and (eq 'file (completion-metadata-get metadata 'category))
- (string-match-p "/\\(sudo\\|sshx?\\):" content))
+ (string-match-p "\\`/[^:]+:" (substitute-in-file-name content)))
(vertico--recompute-candidates pt content bounds metadata)
;; bug#38024: Icomplete uses `while-no-input-ignore-events' to
repair updating issues
(let ((while-no-input-ignore-events '(selection-request))