Steps to reproduce
Create a document in Obsidian. Start typing somewhere in the middle of a long line at a rapid pace.
Expected result
All characters show up where they are typed.
Actual result
At some point, while typing, the cursor randomly jumps to the end of the current line and the characters are subsequently entered there.
Environment
- Operating system: MacOS 11.0.1. This issue also existed on 10.14 and 10.15.
- Obsidian version: Obsidian v0.10.7. This issue has existed since at least version 0.9.1.
Additional information
This issue occurs both with vim key bindings enabled and disabled. This is NOT limited to entering visible text. In vi input mode, the random cursor jumping also occurs when entering control characters, e.g. hitting the ‘.’ key to repeat the last action. If I want to delete 5 words, I might type ‘dw…’, but after (for example) the second ‘.’, the cursor jumps to the end of the line, so the third and fourth ‘.’ remove a blank line and the first word of the next line.
It seems like some documents are more prone to exhibiting this issue than others. The longer the document, the more likely the issue is to manifest. I seldom to never see this with short documents. During heavy editing of documents of several thousands words or more, I may see the issue occur several times a minute. When typing slowly, the issue seldom to never occurs.