branch: externals/consult
commit f77f5fb89664a78a4adf38e6d7ac2f533b6f24ec
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@daniel-mendler.de>

    consult--left-truncate-file: Improve Tramp highlighting
---
 consult.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/consult.el b/consult.el
index 44aee91033..331a77ae96 100644
--- a/consult.el
+++ b/consult.el
@@ -794,7 +794,7 @@ network file systems."
   (save-match-data
     (let ((file (directory-file-name (abbreviate-file-name file)))
           (prefix nil))
-      (when (string-match "\\`/\\([^/|:]+:\\)" file)
+      (when (string-match "\\`/\\([^/|:]+:[^/|:]+:\\)" file)
         (setq prefix (propertize (match-string 1 file) 'face 'error)
               file (substring file (match-end 0))))
       (when (string-match "/\\([^/]+\\)/\\([^/]+\\)\\'" file)

Reply via email to