Fork me on GitHub
#parinfer
<
2016-02-18
>
shaunlebron18:02:24

parinfer 1.6.0 is published to npm

shaunlebron18:02:52

returns the cursor position (so that modifications to a line shift the cursor appropriately)

shaunlebron18:02:56

for users, cursorX is always returned from the mode functions, so always update the cursor with that

shaunlebron18:02:35

for porting, see the following pull request, which splits the code/tester/cases/doc changes into individual commits for easy reading

sekao20:02:55

hey @shaunlebron i tried out the new version was wondering if this was intended: parinfer.indentMode("(", {cursorLine: 0, cursorX: 1}) returns {text: "()", cursorX: 2} (among other things). that seems to mean that typing an open paren moves the cursor after the closing brace.

shaunlebron20:02:40

@sekao thanks. def a bug

shaunlebron20:02:40

looks like i missed a basic use case. will add a test case for that, and actually play with it in an editor to see what else i missed