aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaView.mm
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa/ScintillaView.mm')
-rw-r--r--cocoa/ScintillaView.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm
index cee96def5..4b5bf393a 100644
--- a/cocoa/ScintillaView.mm
+++ b/cocoa/ScintillaView.mm
@@ -202,6 +202,9 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor) {
}
- (void) drawRect: (NSRect) rect {
+ if (!NSContainsRect(self.bounds, rect)) {
+ rect = self.bounds;
+ }
[super drawRect:rect];
}