mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-07 15:37:14 +02:00
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:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user