I had to rewrite my snippet on a post multiple times using the snippet editor, because it looks a bit broken:
The text I am selecting does not always correspond to the actual text, so after deleting this text for instance, the affected text is not the one I selected, but also other lines, so I am deleting text that I don't want to.
To reproduce the bug: Just create a snippet, go to the HTML panel for example, and start editing, selecting text, removing it. You will see the bug.
It was tested in Chrome and Firefox, and I manually resized my browser window (this works for jsfiddle chrome bug), but without any luck.