Fix issue #9477: spacemacs/smart-closing-parenthesis sometimes adds an extra closing parenthesis. spacemacs/smart-closing-parenthesis may call sp-up-sexp twice: first to find the position of an existing closing delimiter or the position at which one would be inserted, and second to insert a delimiter if necessary or else move point after the existing closing delimiter. The problem is that each call to sp-up-sexp may insert a delimiter, but spacemacs/smart-closing-parenthesis is supposed to insert at most one. The solution is to undo any edit performed by the first call to sp-up-sexp. * layers/+spacemacs/spacemacs-editing/funcs.el: Undo any edit performed by the first call to sp-up-sexp. |
||
---|---|---|
.. | ||
spacemacs-completion | ||
spacemacs-defaults | ||
spacemacs-editing | ||
spacemacs-editing-visual | ||
spacemacs-evil | ||
spacemacs-language | ||
spacemacs-layouts | ||
spacemacs-misc | ||
spacemacs-modeline | ||
spacemacs-navigation | ||
spacemacs-org | ||
spacemacs-project | ||
spacemacs-purpose | ||
spacemacs-visual |