summaryrefslogtreecommitdiff
path: root/paredit.el
diff options
context:
space:
mode:
Diffstat (limited to 'paredit.el')
-rw-r--r--paredit.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/paredit.el b/paredit.el
index 6fc8de7..dd25bab 100644
--- a/paredit.el
+++ b/paredit.el
@@ -780,7 +780,10 @@ If such a comment exists, delete the comment (including all leading
(memq (char-syntax (if endp (char-after) (char-before)))
(list ?w ?_ ?\"
(let ((matching (matching-paren delimiter)))
- (and matching (char-syntax matching)))))))
+ (and matching (char-syntax matching)))
+ (and (not endp)
+ (eq ?\" (char-syntax delimiter))
+ ?\) )))))
(defun paredit-move-past-close-and-reindent (close)
(let ((open (paredit-missing-close)))