summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paredit.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/paredit.el b/paredit.el
index a887ddc..6c9907c 100644
--- a/paredit.el
+++ b/paredit.el
@@ -1170,8 +1170,9 @@ This is expected to be called only in `paredit-comment-dwim'; do not
(insert ";;; "))
((or code-after-p (not code-before-p))
;; Code comment
- (if code-before-p (newline))
- (lisp-indent-line)
+ (if code-before-p
+ (newline-and-indent)
+ (lisp-indent-line))
(insert ";; ")
(if code-after-p
(save-excursion