Avoid "dropping DO message ..." warning when quitting

The warning was a result of sending a DO message from Vim and then
immediately exiting the process.  It is avoided by not sending any DO
messages while Vim is exiting.
This commit is contained in:
Bjorn Winckler
2008-05-10 15:25:44 +02:00
parent 2e6fb2ea53
commit 31bd050607
+4 -3
View File
@@ -439,9 +439,10 @@ static NSString *MMSymlinkWarningString =
// NOTE! This method gets called a lot; if we were to flush every time it
// got called MacVim would feel unresponsive. So there is a time out which
// ensures that the queue isn't flushed too often.
if (!force && lastFlushDate && -[lastFlushDate timeIntervalSinceNow]
< MMFlushTimeoutInterval
&& [drawData length] < MMFlushQueueLenHint)
if (exiting ||
(!force && lastFlushDate &&
-[lastFlushDate timeIntervalSinceNow] < MMFlushTimeoutInterval &&
[drawData length] < MMFlushQueueLenHint))
return;
if ([drawData length] > 0) {