emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rust-mode 1a370a4f2a 1/2: Automatically remove the redunda


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode 1a370a4f2a 1/2: Automatically remove the redundant window after calling rustfmt. Fix the issue #475
Date: Sun, 18 Dec 2022 12:59:25 -0500 (EST)

branch: elpa/rust-mode
commit 1a370a4f2a45f46505d8215176d1da43308c50bf
Author: Michael <imichael2e2@gmail.com>
Commit: Michael <imichael2e2@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))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]