From 1091b43561883e4e8fbdf7ab782d41f635851649 Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Tue, 23 Oct 2007 17:19:54 +0200 Subject: [PATCH] Reduce update delay when resizing with mouse. By forcing an update of the text view at the end of batch processing of draw commands the update delay when dragging to resize is reduced. --- src/MacVim/MMVimController.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/MacVim/MMVimController.m b/src/MacVim/MMVimController.m index f46c4425b0..0f0a3c60ee 100644 --- a/src/MacVim/MMVimController.m +++ b/src/MacVim/MMVimController.m @@ -905,6 +905,11 @@ static NSTimeInterval MMResendInterval = 0.5; } [textStorage endEditing]; + + // NOTE: During resizing, Cocoa only sends draw messages before Vim's rows + // and columns are changed (due to ipc delays). Force a redraw here. + [[windowController vimView] displayIfNeeded]; + #if MM_DEBUG_DRAWING NSLog(@"<==== END %s", _cmd); #endif