Done with a modified file only preventing switching views for the current file (closes #263).