[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master a8f2009d031: * lisp/windmove.el (windmove-swap-states-in-directio
From: |
Juri Linkov |
Subject: |
master a8f2009d031: * lisp/windmove.el (windmove-swap-states-in-direction): Don't swap minibuffer. |
Date: |
Tue, 16 May 2023 13:34:06 -0400 (EDT) |
branch: master
commit a8f2009d03138b3b3b6c75452aba7a17c68a60f7
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>
* lisp/windmove.el (windmove-swap-states-in-direction): Don't swap
minibuffer.
Guard against swapping the minibuffer when the minibuffer is in the selected
window (bug#62427). The function was already protected when the minibuffer
is in other-window.
---
lisp/windmove.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/windmove.el b/lisp/windmove.el
index 06ce16c0d42..746a440bacb 100644
--- a/lisp/windmove.el
+++ b/lisp/windmove.el
@@ -724,6 +724,8 @@ from the opposite side of the frame."
nil windmove-wrap-around 'nomini)))
(cond ((or (null other-window) (window-minibuffer-p other-window))
(user-error "No window %s from selected window" dir))
+ ((window-minibuffer-p (selected-window))
+ (user-error "Can't swap window with the minibuffer"))
(t
(window-swap-states nil other-window)))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master a8f2009d031: * lisp/windmove.el (windmove-swap-states-in-direction): Don't swap minibuffer.,
Juri Linkov <=