Got a really nasty bug going on with ST3.
If I switch to another tab from a dirty (unsaved) tab, the contents of the tab I have switched to is copied into the previous (dirty) tab and it is saved. The dirty indicator for it disappears.
If I switch back to this tab and undo, it reverts to its previous content, however if I don't notice and close it, I end up losing the previous content forever (or at least any changes since the previous commit). I can reproduce this every time.
Has anyone else encountered this behaviour?