rksm / paredit.js

Generic reader and editor for s-expressions.
MIT License
107 stars 21 forks source link

Barfing splits current form #1

Closed jonspalding closed 9 years ago

jonspalding commented 9 years ago

Given this code with the cursor where the pipe is:

(fo|o bar)

when barfing forwards the end brace will be inserted where the cursor is, not after foo as is expected. So you end up with

(fo|)o bar

instead of

(fo|o) bar

It seems to work ok if the cursor is at the beginning of a form.

rksm commented 9 years ago

Thanks!