branch: elpa/rust-mode commit 1a370a4f2a45f46505d8215176d1da43308c50bf Author: Michael <imichael...@gmail.com> Commit: Michael <imichael...@gmail.com>
Automatically remove the redundant window after calling rustfmt. Fix the issue #475 --- rust-rustfmt.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-rustfmt.el b/rust-rustfmt.el index bb8864728c..9e53fe590c 100644 --- a/rust-rustfmt.el +++ b/rust-rustfmt.el @@ -67,7 +67,7 @@ (with-current-buffer buf (replace-buffer-contents rust-rustfmt-buffername)) (copy-to-buffer buf (point-min) (point-max)))) - (kill-buffer)) + (kill-buffer-and-window)) ((= ret 3) (if (not (string= (buffer-string) (with-current-buffer buf (buffer-string))))