]> git.eshelyaron.com Git - emacs.git/commitdiff
Ensure NS frame is redrawn correctly after scroll
authorAlan Third <alan@idiocy.org>
Fri, 12 Oct 2018 20:45:03 +0000 (21:45 +0100)
committerAlan Third <alan@idiocy.org>
Fri, 12 Oct 2018 20:46:53 +0000 (21:46 +0100)
* src/nsterm.m (ns_copy_bits): Set needsDisplay so the previous cursor
position is redrawn.

src/nsterm.m

index d92d6c32448da178ed0a80238a5458ef6761d4ae..8c355a89f8f1ca35df6a4e8075fbb72e8d1b1c56 100644 (file)
@@ -2721,6 +2721,7 @@ ns_copy_bits (struct frame *f, NSRect src, NSRect dest)
       [FRAME_NS_VIEW (f) scrollRect: src
                                  by: NSMakeSize (dest.origin.x - src.origin.x,
                                                  dest.origin.y - src.origin.y)];
+      [FRAME_NS_VIEW (f) setNeedsDisplay:YES];
     }
 }