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

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

[nongnu] elpa/web-mode edf42372ba 06/15: fixed: web-mode-comment-indent-


From: ELPA Syncer
Subject: [nongnu] elpa/web-mode edf42372ba 06/15: fixed: web-mode-comment-indent-new-line
Date: Fri, 19 Aug 2022 05:59:27 -0400 (EDT)

branch: elpa/web-mode
commit edf42372ba33c58cf9b95913ae9e5640822f55be
Author: ncaq <ncaq@ncaq.net>
Commit: ncaq <ncaq@ncaq.net>

    fixed: web-mode-comment-indent-new-line
    
    Like the behavior of the original `comment-indent-new-line` it replaces, it 
inserts a space when generating a new comment line.
    I thought the behavior before the modification was a matter of preference 
and that I would have to provide a custom one.
    However, when I actually looked at the source code, I found that it seemed 
meaningless to bother to concat an empty string.
    Therefore, I decided that I simply forgot to insert a space.
---
 web-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web-mode.el b/web-mode.el
index 6c2ff5c561..e908fdd8c2 100644
--- a/web-mode.el
+++ b/web-mode.el
@@ -10936,7 +10936,7 @@ Prompt user if TAG-NAME isn't provided."
      (t
       (newline 1)
       (indent-line-to (plist-get ctx :col))
-      (insert (concat (plist-get ctx :prefix) "")))
+      (insert (concat (plist-get ctx :prefix) " ")))
      ) ;cond
     ))
 



reply via email to

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