branch: elpa/web-mode
commit edf42372ba33c58cf9b95913ae9e5640822f55be
Author: ncaq <[email protected]>
Commit: ncaq <[email protected]>
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
))