Enter does not introduce newlines correctly if typing fast enough

If you smash Enter + other letters sometimes the cursor (apparently) moves to the next line but does no go back to the first column (as expected). I tried to reproduce it artificially dispatching events but it did not replicate. In the codemirror.net example looks like this:

imagen

Tested and getting the same bug on {Firefox|Chrome}/macOs14.5; Chrome/Win11
Safari@mac14.5 is not affected. I can provide more details/versions if it may be helpful.

Sorry for the messy reproduction :slight_smile: I hope it is easy to fix and not a weird browser behaviour.

From the look of it, given that it happens precisely after lines that are just as, this seems to just be auto-indentation kicking in, and that editor parsing [something] as df as an expression that continues across a line, and thus should be indented.

2 Likes