Commit e6bba95e authored by Dave Love's avatar Dave Love
Browse files

(comment-indent): Ensure space before added comment.

parent 136b7da9
......@@ -473,6 +473,10 @@ If CONTINUE is non-nil, use the `comment-continue' markers if any."
;; are in column 0, so we first go to the likely target column.
(indent-to comment-column)
(setq begpos (point))
;; Ensure there's a space before the comment for things
;; like sh where it matters (as well as being neater).
(unless (eq ?\ (char-syntax (char-before)))
(insert ?\ ))
(insert starter)
(setq cpos (point-marker))
(insert ender)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment