[quote=“fjl”]Here’s a fun bug:
After some sequence of editing operations (unable to trigger this reliably) I cannot move the caret anymore.
The line highlight still moves and characters are inserted into the right place (on the line where the highlight is),
but the blinking caret beam doesn’t. When I re-focus the ST2 window (or if Vintage toggles between Insert mode and Command mode)
the visual carets position is updated once.
I got into this state two times today. I can no longer quit the editor (neither using Ctrl-Q nor through the menu) when
this happens.[/quote]
I think I already had this kind of behavior, but it’s not caused by a bug of ST2, but a bug in a plugin.
It was caused by a plugin calling:
edit = self.view.begin_edit('toto')
without calling:
self.view.end_edit(edit)
This is why this code must be enclosed in a try: finally:
If I remember well, there was a message in the console that tell you the end_edit was not called.