summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paredit.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/paredit.el b/paredit.el
index 90813a0..f51d24e 100644
--- a/paredit.el
+++ b/paredit.el
@@ -989,7 +989,8 @@ If in a comment and if followed by invalid structure, call
(newline))
((paredit-in-comment-p)
(if (paredit-region-ok-p (point) (point-at-eol))
- (progn (newline-and-indent) (indent-sexp))
+ (progn (newline-and-indent)
+ (paredit-ignore-sexp-errors (indent-sexp)))
(indent-new-comment-line)))
(t
(if (paredit-in-char-p)