Ensure viminfo is written on Cmd-q

This commit is contained in:
Bjorn Winckler
2009-02-01 10:15:40 +01:00
parent b8c8a68a5c
commit 243fcce65c
+4 -2
View File
@@ -1060,9 +1060,11 @@ extern GuiFont gui_mch_retain_font(GuiFont font);
}
} else if (TerminateNowMsgID == msgid) {
// Terminate immediately (the frontend is about to quit or this process
// was aborted).
// was aborted). Don't preserve modified files since the user would
// already have been presented with a dialog warning if there were any
// modified files when we get here.
isTerminating = YES;
mch_exit(0);
getout(0);
return;
}