### Describe the bug Every time you type something on a new line, the caret position resets to the previous position. So trying to write `"<button>"` ends up as "button><". ### Reproduction Try it out. ### Logs _No response_ ### System Info ```shell REPL ``` ### Severity annoyance