From 16aabdf5abb5f66655dd1a8615fbe75a99680c8c Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 6 Feb 2017 15:48:11 -0800 Subject: Do not delete the window after successful command. Instead of deleting the window, we want to restore the previous one, so we don't mess with the layout. --- pants.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pants.el b/pants.el index 0cb2fb2..e5e9cda 100644 --- a/pants.el +++ b/pants.el @@ -120,7 +120,7 @@ (zerop code) (and pants-bury-compilation-buffer t)) (bury-buffer (get-buffer *pants-compilation-buffer*)) - (delete-window (get-buffer-window (get-buffer *pants-compilation-buffer*)))) + (replace-buffer-in-windows (get-buffer *pants-compilation-buffer*))) (cons msg code)))) (defun pants--compile (command) -- cgit v1.2.3