aboutsummaryrefslogtreecommitdiff
path: root/evil-commands.el
diff options
context:
space:
mode:
authorJohann Klähn <johann@jklaehn.de>2021-09-04 10:47:44 +0200
committerAxel Forsman <axelsfor@gmail.com>2023-01-10 14:50:06 +0100
commit8d22345fa381a9fc541b9913b3a8e2fb178a29f4 (patch)
treede2b83c61acacd04d9ddd911ff630e8cf802f5ac /evil-commands.el
parent8521dee34e0d3516019d38f2a537d82741179342 (diff)
Respect window params in evil-window-{next,prev}
Co-authored-by: Axel Forsman <axelsfor@gmail.com>
Diffstat (limited to 'evil-commands.el')
-rw-r--r--evil-commands.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/evil-commands.el b/evil-commands.el
index d6558b9..03fd063 100644
--- a/evil-commands.el
+++ b/evil-commands.el
@@ -4452,7 +4452,7 @@ top-left."
:repeat nil
(interactive "<c>")
(if (not count)
- (select-window (next-window))
+ (other-window +1)
(evil-window-top-left)
(other-window (1- (min count (length (window-list)))))))
@@ -4463,7 +4463,7 @@ top-left."
:repeat nil
(interactive "<c>")
(if (not count)
- (select-window (previous-window))
+ (other-window -1)
(evil-window-top-left)
(other-window (1- (min count (length (window-list)))))))