Re-render on style change


#1

I have some styles that change, and the cursor thus ends up a bit misplaced, is there any way to trigger a re-calculuation in CodeMirror?


#2

Yes, call its refresh method.