Tear-off button should be disabled when there are unsaved changes
-
1) Make changes to your script but don't save
2) Click the expand/tear-off button (top-right)
3) Make changes in the new windowThe changes you made are not reflected in the new window. This makes it possible to get into a state where you have two script windows each with different content.
The tear-off button should be disabled if there are unsaved changes -or- the new window should include the uncommitted changes.