aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-03-24 08:49:14 +1100
committernyamatongwe <nyamatongwe@gmail.com>2013-03-24 08:49:14 +1100
commit0a52837c6071a39289cd536bbe1e90be280b6398 (patch)
tree61013c456b6ee04252e7e523b56a7dc84d6a3ec3
parentc9241f97107b411dd4e43f6f01f52dd6d723be98 (diff)
downloadscintilla-mirror-0a52837c6071a39289cd536bbe1e90be280b6398.tar.gz
Fixed painting of margin view when lines wrapped inside paint of text view.
-rw-r--r--cocoa/ScintillaCocoa.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm
index 31b382f3e..2833e7846 100644
--- a/cocoa/ScintillaCocoa.mm
+++ b/cocoa/ScintillaCocoa.mm
@@ -1532,6 +1532,11 @@ bool ScintillaCocoa::SyncPaint(void* gc, PRectangle rc)
delete sw;
}
paintState = notPainting;
+ if (!succeeded)
+ {
+ NSView *marginView = static_cast<NSView*>(wMargin.GetID());
+ [marginView setNeedsDisplay:YES];
+ }
return succeeded;
}