The Modified() script command on a text-based view now tests for unsaved changes, not undoable changes. Previously, if a text-based view was changed by a script, Modified() said it had not been changed.