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

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

[elpa] externals/ivy-hydra 40a7731 199/395: ivy.el (ivy-switch-buffer-tr


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra 40a7731 199/395: ivy.el (ivy-switch-buffer-transformer): Change how remote dirs are displayed
Date: Thu, 25 Feb 2021 08:32:02 -0500 (EST)

branch: externals/ivy-hydra
commit 40a77314ca90040c6a72ed8173338f8e4295fe19
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    ivy.el (ivy-switch-buffer-transformer): Change how remote dirs are displayed
    
    As not to confuse similarly named dirs on two different remotes.
---
 ivy.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/ivy.el b/ivy.el
index 7ce875c..6d560ef 100644
--- a/ivy.el
+++ b/ivy.el
@@ -4575,10 +4575,8 @@ Skip buffers that match `ivy-ignore-buffers'."
         (let ((dir (buffer-local-value 'default-directory buf))
               (mode (buffer-local-value 'major-mode buf)))
           (cond
-            ((and dir (ignore-errors (setq dir (file-remote-p dir))))
-             (concat
-              (ivy-append-face str 'ivy-remote)
-              " " dir))
+            ((and dir (ignore-errors (file-remote-p dir)))
+             (ivy-append-face dir 'ivy-remote))
             ((not (verify-visited-file-modtime buf))
              (ivy-append-face str 'ivy-modified-outside-buffer))
             ((buffer-modified-p buf)



reply via email to

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