shaunlebron / parinfer-codemirror

Parinfer layer for CodeMirror
ISC License
16 stars 4 forks source link

Fix history #1

Closed shaunlebron closed 7 years ago

shaunlebron commented 7 years ago

Undo exhibits weird behavior. For example, starting with:

(foo [1 2 3
      4 5 6])

Press Enter after foo:

(foo 
  [1 2 3
   4 5 6])

Undo:

(foo 
  [1 2 3
      4 5 6])

Might be able to fix this with setHistory

shaunlebron commented 7 years ago

this seems to be worse than the original cljs version. need to investigate what I originally did some custom history editing there