aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaView.mm
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa/ScintillaView.mm')
-rw-r--r--cocoa/ScintillaView.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm
index ba363ef14..178762d68 100644
--- a/cocoa/ScintillaView.mm
+++ b/cocoa/ScintillaView.mm
@@ -127,7 +127,9 @@ NSString *SCIUpdateUINotification = @"SCIUpdateUI";
{
CGContextRef context = (CGContextRef) [[NSGraphicsContext currentContext] graphicsPort];
- mOwner.backend->Draw(rect, context);
+ if (!mOwner.backend->Draw(rect, context)) {
+ [self display];
+ }
}
//--------------------------------------------------------------------------------------------------