From 9351dcd2180e895ef9457b2fe2e47e2ba969edbe Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 25 Mar 2016 13:38:34 -0400 Subject: [PATCH] smartparens: fix 'wrong side of point' errors in C++ --- core/core-editor.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-editor.el b/core/core-editor.el index b259a6c49..6baea5054 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -266,7 +266,7 @@ enable multiple minor modes for the same regexp.") (sp-local-pair "while" "" :when '(("SPC")) :post-handlers '((:add sp-insert-yasnippet)) :actions '(insert))) (sp-with-modes '(c-mode c++-mode objc-mode php-mode java-mode) - (sp-local-pair "/*" "" :post-handlers '(("||\n[i]*/" "RET") ("| */" "SPC"))) + (sp-local-pair "/*" "*/" :post-handlers '(("||\n[i]" "RET") ("| " "SPC"))) ;; Doxygen blocks (sp-local-pair "/**" "*/" :post-handlers '(("||\n[i]" "RET") ("||\n[i]" "SPC")))