summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrotzeit <brotzeitmacher@gmail.com>2022-12-18 18:04:30 +0100
committerGitHub <noreply@github.com>2022-12-18 18:04:30 +0100
commit839bf7b1e1e335c8ba8f04b247eb84076be0c50a (patch)
tree6467f55fd548cfebbcb3df118332de1495ae4f45
parentc6f2e8a800992b65d194590b72e3d4d135cba0aa (diff)
parent1a370a4f2a45f46505d8215176d1da43308c50bf (diff)
downloadrust-mode-839bf7b1e1e335c8ba8f04b247eb84076be0c50a.tar.gz
Merge pull request #476 from imichael2e2/master
Fix the issue #475
-rw-r--r--rust-rustfmt.el2
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))))