summaryrefslogtreecommitdiff
path: root/cocoa/BrowserView.m
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa/BrowserView.m')
-rw-r--r--cocoa/BrowserView.m7
1 files changed, 6 insertions, 1 deletions
diff --git a/cocoa/BrowserView.m b/cocoa/BrowserView.m
index 624aded23..7e4e5d649 100644
--- a/cocoa/BrowserView.m
+++ b/cocoa/BrowserView.m
@@ -147,6 +147,11 @@ static inline NSRect cocoa_get_caret_rect( BrowserView *view )
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
current_redraw_browser = browser;
+
+ struct redraw_context ctx = {
+ .interactive = true,
+ .plot = &cocoa_plotters
+ };
const NSRect *rects = NULL;
NSInteger count = 0;
@@ -160,7 +165,7 @@ static inline NSRect cocoa_get_caret_rect( BrowserView *view )
.y1 = cocoa_pt_to_px( NSMaxY( rects[i] ) )
};
- browser_window_redraw(browser, 0, 0, &clip);
+ browser_window_redraw(browser, 0, 0, &clip, &ctx);
}
current_redraw_browser = NULL;