]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "Force screen update after drawing cursor glyph (bug#23774)"
authorAlan Third <alan@idiocy.org>
Tue, 5 Sep 2017 22:40:46 +0000 (23:40 +0100)
committerAlan Third <alan@idiocy.org>
Tue, 5 Sep 2017 22:42:20 +0000 (23:42 +0100)
This reverts commit 1b492fa5456e2b6face8d0856f11d17e432693b0.

See bug#28358

src/nsterm.m

index 6b0e18bf439028e636cee4b2d719effd0f2e7864..ff3329d1cee3a6bff0eaae5ecfeefcd390df95b4 100644 (file)
@@ -3143,16 +3143,7 @@ ns_draw_window_cursor (struct window *w, struct glyph_row *glyph_row,
 
   /* draw the character under the cursor */
   if (cursor_type != NO_CURSOR)
-    {
-      draw_phys_cursor_glyph (w, glyph_row, DRAW_CURSOR);
-
-#ifdef NS_IMPL_COCOA
-      /* The glyph under the cursor isn't displayed when switching
-         spaces, so force an update.  This seems to be related to the
-         use of NSDisableScreenUpdates.  */
-      [FRAME_NS_VIEW (f) setNeedsDisplay:YES];
-#endif
-    }
+    draw_phys_cursor_glyph (w, glyph_row, DRAW_CURSOR);
 
 #ifdef NS_IMPL_COCOA
   NSEnableScreenUpdates ();