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

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

[elpa] externals/ace-window 6d3a6a0 23/92: ace-window.el (aw-switch-buff


From: Stefan Monnier
Subject: [elpa] externals/ace-window 6d3a6a0 23/92: ace-window.el (aw-switch-buffer-in-window): Use ivy if available
Date: Wed, 17 Mar 2021 18:39:14 -0400 (EDT)

branch: externals/ace-window
commit 6d3a6a0729170135a19bbb39e7c9b6052eaca3e8
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    ace-window.el (aw-switch-buffer-in-window): Use ivy if available
    
    Fixes #107
---
 ace-window.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ace-window.el b/ace-window.el
index 3024709..e4c9f8a 100644
--- a/ace-window.el
+++ b/ace-window.el
@@ -496,7 +496,9 @@ Windows are numbered top down, left to right."
 (defun aw-switch-buffer-in-window (window)
   "Select buffer in WINDOW."
   (aw-switch-to-window window)
-  (call-interactively 'switch-to-buffer))
+  (if (bound-and-true-p ivy-mode)
+      (ivy-switch-buffer)
+    (call-interactively 'switch-to-buffer)))
 
 (defcustom aw-swap-invert nil
   "When non-nil, the other of the two swapped windows gets the point."



reply via email to

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