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

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

[nongnu] elpa/go-mode 56ab2c8 088/495: make sure kill-line in go-remove-


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 56ab2c8 088/495: make sure kill-line in go-remove-unused-imports includes \n
Date: Sat, 7 Aug 2021 09:04:49 -0400 (EDT)

branch: elpa/go-mode
commit 56ab2c829027ea9e7d38c0b73fb95265d788f435
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    make sure kill-line in go-remove-unused-imports includes \n
---
 go-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/go-mode.el b/go-mode.el
index 89cd0da..b3faded 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -693,7 +693,8 @@ will be commented, otherwise they will be removed 
completely."
           (beginning-of-line)
           (if arg
               (comment-region (line-beginning-position) (line-end-position))
-            (kill-line)))
+            (let ((kill-whole-line t))
+              (kill-line))))
         (message "Removed %d imports" (length lines)))
       (if flymake-state (flymake-mode-on)))))
 



reply via email to

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