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

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

[nongnu] elpa/evil 7c3343cef7: Select the correct window after rotating


From: ELPA Syncer
Subject: [nongnu] elpa/evil 7c3343cef7: Select the correct window after rotating windows with evil-window-rot… (#1716)
Date: Wed, 9 Nov 2022 17:58:37 -0500 (EST)

branch: elpa/evil
commit 7c3343cef739ae223eb3ca991897d97f2d017462
Author: kpence <pencekyle@gmail.com>
Commit: GitHub <noreply@github.com>

    Select the correct window after rotating windows with evil-window-rot… 
(#1716)
---
 evil-commands.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/evil-commands.el b/evil-commands.el
index bc03e7d661..adaf6c3523 100644
--- a/evil-commands.el
+++ b/evil-commands.el
@@ -4661,7 +4661,7 @@ If ARG is empty, maximize the current window height."
         (window-state-put (car slist) (car wlist))
         (setq wlist (cdr wlist)
               slist (cdr slist)))
-      (select-window (car (last (window-list)))))))
+      (select-window (cadr (last (window-list)))))))
 
 (evil-define-command evil-window-rotate-downwards ()
   "Rotate the windows according to the current cyclic ordering."
@@ -4674,7 +4674,7 @@ If ARG is empty, maximize the current window height."
         (window-state-put (car slist) (car wlist))
         (setq wlist (cdr wlist)
               slist (cdr slist)))
-      (select-window (cadr (window-list))))))
+      (select-window (car (window-list))))))
 
 (evil-define-command evil-window-exchange (count)
   "Without COUNT: exchange current window with next one.



reply via email to

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