From: Alan Third Date: Sun, 3 Sep 2017 12:51:14 +0000 (+0100) Subject: Force screen update after drawing cursor glyph (bug#23774) X-Git-Tag: emacs-26.0.90~267 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1b492fa5456e2b6face8d0856f11d17e432693b0;p=emacs.git Force screen update after drawing cursor glyph (bug#23774) * src/nsterm.m (ns_draw_window_cursor): Force a screen update after drawing the glyph over the cursor. --- diff --git a/src/nsterm.m b/src/nsterm.m index ff3329d1cee..6b0e18bf439 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -3143,7 +3143,16 @@ 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); + { + 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 + } #ifdef NS_IMPL_COCOA NSEnableScreenUpdates ();