summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2017-02-06 15:48:11 -0800
committerFranck Cuny <franckcuny@gmail.com>2017-02-06 15:48:11 -0800
commit16aabdf5abb5f66655dd1a8615fbe75a99680c8c (patch)
treef07d49f8a93dde8319921c7a9b65bab385a2184e
parentTry to do the right thing for the default-directory. (diff)
downloadpants.el-16aabdf5abb5f66655dd1a8615fbe75a99680c8c.tar.gz
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.
-rw-r--r--pants.el2
1 files changed, 1 insertions, 1 deletions
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)