parinfer-rust icon indicating copy to clipboard operation
parinfer-rust copied to clipboard

"forceBalance" behaves differently in rust port

Open eraserhd opened this issue 7 years ago • 2 comments

(foo [:bar|])

Press <Enter>.

JavaScript:

(foo [:bar])
      |

Rust (the same as without "forceBalance"):

(foo [:bar
      |])

eraserhd avatar Apr 18 '18 15:04 eraserhd

Similarly, after hitting enter - I'm unable to use backspace to delete empty space or return to previous line because the temporary 'forceBalance' function refuses to be out of balance. I would personally prefer the JavaScript behavior where parens are only moved down when there are characters to be wrapped - currently it focuses too much on the cursor IMHO

cbcoutinho avatar May 06 '18 06:05 cbcoutinho

@cbcoutinho Hopefully, once I get forceBalance working, this will be resolved. But will check again then.

eraserhd avatar May 07 '18 13:05 eraserhd