Avoid false 'documented edited' warning when quitting

If a Vim process is quit using :wq the 'document edited' flag is never cleared,
so always clear it during cleanup.
This commit is contained in:
Bjorn Winckler
2007-12-18 17:37:11 +01:00
parent 08e7634e76
commit 02da38accf
+5
View File
@@ -253,6 +253,11 @@ NSMutableArray *buildMenuAddress(NSMenu *menu)
[vimView removeFromSuperviewWithoutNeedingDisplay];
[vimView cleanup]; // TODO: is this necessary?
// It is feasible that the user quits before the window controller is
// released, make sure the edit flag is cleared so no warning dialog is
// displayed.
[[self window] setDocumentEdited:NO];
[[self window] orderOut:self];
}