Can you please post a MCVE?
Does this happen in other editors, such as a basic text editor or the alpha web editor?