diff options
| author | nyamatongwe <nyamatongwe@gmail.com> | 2013-02-24 11:24:27 +1100 | 
|---|---|---|
| committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-02-24 11:24:27 +1100 | 
| commit | d6127303073968627802b08f97e52194bcf5d9bf (patch) | |
| tree | f891af92d87f0bfe3b223c20f84e8524889497b7 /cocoa/ScintillaView.mm | |
| parent | 2c9df3b72495ced583b9ba55c833158b8a9dfd6e (diff) | |
| download | scintilla-mirror-d6127303073968627802b08f97e52194bcf5d9bf.tar.gz | |
Fix problem where abandoned paints may not cause redraw.
Diffstat (limited to 'cocoa/ScintillaView.mm')
| -rw-r--r-- | cocoa/ScintillaView.mm | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index 542c51679..ae1147a10 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -129,7 +129,9 @@ NSString *SCIUpdateUINotification = @"SCIUpdateUI";    CGContextRef context = (CGContextRef) [[NSGraphicsContext currentContext] graphicsPort];    if (!mOwner.backend->Draw(rect, context)) { -    [self display]; +    dispatch_async(dispatch_get_main_queue(), ^{ +      [self display]; +    });    }  }  | 
