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