summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/newcomment.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/newcomment.el b/lisp/newcomment.el
index 9d089a2e164..d0b29d43f14 100644
--- a/lisp/newcomment.el
+++ b/lisp/newcomment.el
@@ -551,8 +551,8 @@ If CONTINUE is non-nil, use the `comment-continue' markers if any."
(indent-to comment-column)
;; Ensure there's a space before the comment for things
;; like sh where it matters (as well as being neater).
- (unless (memq (char-before) '(nil ?\n ?\t ?\ ))
- (insert ?\ ))
+ (unless (memq (char-before) '(nil ?\n ?\t ?\s))
+ (insert ?\s))
(setq begpos (point))
(insert starter)
(setq cpos (point-marker))