We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 384051e + 4f7581d commit 1398c0bCopy full SHA for 1398c0b
rust-rustfmt.el
@@ -69,7 +69,10 @@
69
(with-current-buffer buf
70
(replace-buffer-contents rust-rustfmt-buffername))
71
(copy-to-buffer buf (point-min) (point-max))))
72
- (kill-buffer-and-window))
+ (let ((win (get-buffer-window rust-rustfmt-buffername)))
73
+ (if win
74
+ (quit-window t win)
75
+ (kill-buffer rust-rustfmt-buffername))))
76
((= ret 3)
77
(if (not (string= (buffer-string)
78
(with-current-buffer buf (buffer-string))))
0 commit comments