* 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.
This commit is contained in:
parent
2b1e81df06
commit
a8f2009d03
1 changed files with 2 additions and 0 deletions
|
@ -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)))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue