smartparens icon indicating copy to clipboard operation
smartparens copied to clipboard

sp-previous-sexp behaves different depending on evil state

Open mfiano opened this issue 7 years ago • 1 comments

sp-previous-sexp behaves differently in normal and insert states, depending on the layout of the same form.

In evil insert state, if you position the point on the closing paren of the following 2 examples, and use sp-previous-sexp to visit each string, everything will work as expected. However if you do the same in evil normal state, only the first example will work. The second one will stop on the "b" string and refuse to go any further.

("a" "b" "c")
("a"
 "b"
 "c")

mfiano avatar Jul 29 '17 19:07 mfiano

I use this package to kinda help out with this: https://github.com/willghatch/emacs-on-parens

blaenk avatar Aug 03 '17 08:08 blaenk