From f8d9e40d2c1d127a125adc097d985a0b6964a86c Mon Sep 17 00:00:00 2001 From: Aaron Jensen Date: Thu, 18 May 2023 14:20:18 +0300 Subject: [PATCH] Attempt to fix redisplay problems on macOS * src/nsterm.m (ns_scroll_run): Attempt to fix redisplay artifacts. (Bug#63187) --- src/nsterm.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nsterm.m b/src/nsterm.m index c26528e0154..c809c0b824a 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -2704,11 +2704,12 @@ ns_scroll_run (struct window *w, struct run *run) { NSRect srcRect = NSMakeRect (x, from_y, width, height); NSPoint dest = NSMakePoint (x, to_y); + NSRect destRect = NSMakeRect (x, from_y, width, height); EmacsView *view = FRAME_NS_VIEW (f); [view copyRect:srcRect to:dest]; #ifdef NS_IMPL_COCOA - [view setNeedsDisplayInRect:srcRect]; + [view setNeedsDisplayInRect:destRect]; #endif } -- 2.39.2