[Top][All Lists]

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

[elpa] master 0d87297 326/399: counsel.el (counsel-open-buffer-file-exte

From: Oleh Krehel
Subject: [elpa] master 0d87297 326/399: counsel.el (counsel-open-buffer-file-externally): Cleanup
Date: Sat, 20 Jul 2019 14:57:50 -0400 (EDT)

branch: master
commit 0d8729730c352f51eefc7487ee9488d62f92a874
Author: Damien Cassou <address@hidden>
Commit: Oleh Krehel <address@hidden>

    counsel.el (counsel-open-buffer-file-externally): Cleanup
    According to #2111, it's better to use `(cdr virtual)` than `buffer`.
    Fixes #2115
 counsel.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/counsel.el b/counsel.el
index b0157d7..ea8265c 100644
--- a/counsel.el
+++ b/counsel.el
@@ -5312,7 +5312,7 @@ in the current window."
     (user-error "Can't open that"))
   (let* ((virtual (assoc buffer ivy--virtual-buffers))
          (filename (if virtual
-                       buffer
+                       (cdr virtual)
                      (buffer-file-name (get-buffer buffer)))))
     (unless filename
       (user-error "Can't open `%s' externally" buffer))

reply via email to

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