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

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

[elpa] externals/marginalia c940a49 236/241: Use more restricted regexp


From: Stefan Monnier
Subject: [elpa] externals/marginalia c940a49 236/241: Use more restricted regexp to detect remote completion
Date: Fri, 28 May 2021 20:49:34 -0400 (EDT)

branch: externals/marginalia
commit c940a49dbda97b078c240b7a7a076588e2adb30f
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Use more restricted regexp to detect remote completion
---
 marginalia.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/marginalia.el b/marginalia.el
index dfe5ac5..f052a0d 100644
--- a/marginalia.el
+++ b/marginalia.el
@@ -649,7 +649,7 @@ component of a full file path."
 
 (defun marginalia--remote-p (path)
   "Return t if PATH is a remote path."
-  (string-match-p "\\`/[^:]+:" (substitute-in-file-name path)))
+  (string-match-p "\\`/[^/|:]+:" (substitute-in-file-name path)))
 
 (defun marginalia-annotate-file (cand)
   "Annotate file CAND with its size, modification time and other attributes.



reply via email to

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