Don't move buffer if target is minibuffer

This commit is contained in:
Henrik Lissner 2016-01-07 01:01:20 -05:00
parent 8cd21a0fff
commit 56c7d946cf

View file

@ -30,6 +30,8 @@ evil-window-move-* (e.g. `evil-window-move-far-left')"
(this-buffer (current-buffer)) (this-buffer (current-buffer))
(that-window (windmove-find-other-window direction nil this-window)) (that-window (windmove-find-other-window direction nil this-window))
(that-buffer (window-buffer that-window))) (that-buffer (window-buffer that-window)))
(when (minibufferp that-buffer)
(setq that-buffer nil that-window nil))
(if (and (not that-window) (not (one-window-p t))) (if (and (not that-window) (not (one-window-p t)))
(funcall (case direction (funcall (case direction
('left 'evil-window-move-far-left) ('left 'evil-window-move-far-left)