rascalmicro/red — pull request #10 by dsmall (2013-05-16 09:13:57+00:00)
Title: Red Bug #1

After the last tab was deleted, typing into the new anonymous (untitled) tab set the change indicator and attempting to close the changed tab displayed querySave. If Save was chosen, no message was displayed and the querySave entered an endless loop.

Fixes
1. In tabShown, for tabs without a document, set trackChanges to false. Also set mode to text.
2. In SaveFile, if editor is readOnly or fpath is the empty string, end a querySave if one is running.

Only fix 1 was required. Fix 2 deals with a scenario which should no longer occur.