From 56c7d946cfe952955fd850594502e8ad7eac61c0 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 7 Jan 2016 01:01:20 -0500 Subject: [PATCH] Don't move buffer if target is minibuffer --- core/lib/defuns-window.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/lib/defuns-window.el b/core/lib/defuns-window.el index 612a89879..ca450241d 100644 --- a/core/lib/defuns-window.el +++ b/core/lib/defuns-window.el @@ -30,6 +30,8 @@ evil-window-move-* (e.g. `evil-window-move-far-left')" (this-buffer (current-buffer)) (that-window (windmove-find-other-window direction nil this-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))) (funcall (case direction ('left 'evil-window-move-far-left)