Only switch buffers during `buffer:delete()` if necessary. This is not necessary if deleting a non-visible buffer (e.g. in the dummy view).
Only switch buffers during `buffer:delete()` if necessary.
This is not necessary if deleting a non-visible buffer (e.g. in the dummy view).

rgieseke/textadept,rgieseke/textadept