SublimeText / sublime_lib

Utility library for frequently used functionality in Sublime Text and convenience functions or classes
https://sublimetext.github.io/sublime_lib
MIT License
52 stars 4 forks source link

Revert scratchness after closing view or window #149

Closed Thom1729 closed 3 years ago

Thom1729 commented 3 years ago

Fix #147.

Includes #148 so the window_util tests will run.

One case is not tested. If you have an unsaved view in one window and a clone of that view in the second window, and you close_window() the second window, the first view should not be scratch afterward. However, it doesn't look like it's possible to set that up using the Sublime API (https://github.com/sublimehq/sublime_text/issues/3965). I tested it by hand and It Works On My Machine™.

This PR does not expose clone_view.