aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nsterm.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index b9e3cbf81a1..3e089cc1ff1 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -2704,11 +2704,12 @@ ns_scroll_run (struct window *w, struct run *run)
2704 { 2704 {
2705 NSRect srcRect = NSMakeRect (x, from_y, width, height); 2705 NSRect srcRect = NSMakeRect (x, from_y, width, height);
2706 NSPoint dest = NSMakePoint (x, to_y); 2706 NSPoint dest = NSMakePoint (x, to_y);
2707 NSRect destRect = NSMakeRect (x, from_y, width, height);
2707 EmacsView *view = FRAME_NS_VIEW (f); 2708 EmacsView *view = FRAME_NS_VIEW (f);
2708 2709
2709 [view copyRect:srcRect to:dest]; 2710 [view copyRect:srcRect to:dest];
2710#ifdef NS_IMPL_COCOA 2711#ifdef NS_IMPL_COCOA
2711 [view setNeedsDisplayInRect:srcRect]; 2712 [view setNeedsDisplayInRect:destRect];
2712#endif 2713#endif
2713 } 2714 }
2714 2715