Long code block editing somewhat broken

Earlier today, I was using a long code block, and I tried to edit within the preview viewer for the code block (rather than editing the raw text), and typed a newline, the cursor moved to the top of the entire page. This happened twice, as I was trying to fiddle with it. Interestingly, after writing this, I had moved out of that page and back to it, and I couldn’t reproduce the bug.

Running version 0.5.8 on Windows 10.