parinfer / parinfer.js

Let's simplify the way we write Lisp
https://shaunlebron.github.io/parinfer
MIT License
1.75k stars 40 forks source link

Smart Mode: clamped paren resolution is too eager #164

Closed shaunlebron closed 7 years ago

shaunlebron commented 7 years ago

This is as expected:

((((1
    2
    3))|)
         ^ prevCursor
    4)
((((1
    2
    3))|)
 4)

But this should not be resolving the clamped parens just because the cursor moved left

((((1
    2
    3)))|
         ^ prevCursor
    4)
((((1
    2
    3)))|
 4)
shaunlebron commented 7 years ago

threw out this feature due to pasting issues, so this is now irrelevant: https://github.com/shaunlebron/parinfer/commit/c13c4854ae114d6c725555ebe9f0f9a7d5f64970