Fix small bug on close
Fix a bug with the default indenter that was eating chars at the start of the line
instead of the cursor position