From b83b8df6f1311d7852efa8a8c7d2ededeea99dcb Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Mon, 24 Sep 2007 15:37:37 +0000 Subject: [PATCH] lastFlushDate not set on input begin otherwise some error message were never displayed git-svn-id: http://macvim.googlecode.com/svn/trunk@279 96c4425d-ca35-0410-94e5-3396d5c13a8f --- MMBackend.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MMBackend.m b/MMBackend.m index 4a77f15bb2..d3782895aa 100644 --- a/MMBackend.m +++ b/MMBackend.m @@ -19,7 +19,6 @@ static float MMFlushTimeoutInterval = 0.1f; static unsigned MMServerMax = 1000; -//static NSTimeInterval MMEvaluateExpressionTimeout = 3; // NOTE: The default font is bundled with the application. static NSString *MMDefaultFontName = @"DejaVu Sans Mono"; @@ -1838,8 +1837,11 @@ enum { - (void)processInputBegin { inProcessInput = YES; + + // Reset last flush date otherwise timed error message from e.g. + // ':set tenc=latin1' are never displayed. [lastFlushDate release]; - lastFlushDate = [[NSDate date] retain]; + lastFlushDate = nil; } - (void)processInputEnd