Skip to content

Commit 1a370a4

Browse files
committed
Automatically remove the redundant window after calling rustfmt. Fix the issue #475
1 parent c6f2e8a commit 1a370a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust-rustfmt.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
(with-current-buffer buf
6868
(replace-buffer-contents rust-rustfmt-buffername))
6969
(copy-to-buffer buf (point-min) (point-max))))
70-
(kill-buffer))
70+
(kill-buffer-and-window))
7171
((= ret 3)
7272
(if (not (string= (buffer-string)
7373
(with-current-buffer buf (buffer-string))))

0 commit comments

Comments
 (0)