diff options
| author | Michael <imichael2e2@gmail.com> | 2022-12-18 22:35:38 +0800 |
|---|---|---|
| committer | Michael <imichael2e2@gmail.com> | 2022-12-18 22:35:38 +0800 |
| commit | 1a370a4f2a45f46505d8215176d1da43308c50bf (patch) | |
| tree | 6467f55fd548cfebbcb3df118332de1495ae4f45 /rust-rustfmt.el | |
| parent | c6f2e8a800992b65d194590b72e3d4d135cba0aa (diff) | |
| download | rust-mode-1a370a4f2a45f46505d8215176d1da43308c50bf.tar.gz | |
Automatically remove the redundant window after calling rustfmt. Fix the issue #475
Diffstat (limited to 'rust-rustfmt.el')
| -rw-r--r-- | rust-rustfmt.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust-rustfmt.el b/rust-rustfmt.el index bb88647..9e53fe5 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)))) |
