branch: master commit bef708c26cc93ca1fec19f7e76a3626f3a16bb47 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
ivy.el (ivy--switch-buffer-action): Add work-around If BUFFER is live, and can also be virtual, don't open the virtual one. This work-around should be disabled once uniquify is added to buffer list. --- ivy.el | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/ivy.el b/ivy.el index cb94e44..83857c2 100644 --- a/ivy.el +++ b/ivy.el @@ -1254,7 +1254,8 @@ BUFFER may be a string or nil." (switch-to-buffer ivy-text nil 'force-same-window) (let ((virtual (assoc buffer ivy--virtual-buffers))) - (if virtual + (if (and virtual + (not (get-buffer buffer))) (find-file (cdr virtual)) (switch-to-buffer buffer nil 'force-same-window)))))