]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't redraw the glyph on top of bar cursors
authorAlan Third <alan@idiocy.org>
Sat, 16 Feb 2019 10:56:13 +0000 (10:56 +0000)
committerAlan Third <alan@idiocy.org>
Sat, 9 Mar 2019 09:17:08 +0000 (09:17 +0000)
* src/nsterm.m (ns_draw_window_cursor): Limit when we redraw the
glyph.

src/nsterm.m

index ccf8ecc4d26cd1f03bba768f142563787fc2a98c..81d36be6cc08560d10c60f767f1d1e988780cac1 100644 (file)
@@ -3262,8 +3262,9 @@ ns_draw_window_cursor (struct window *w, struct glyph_row *glyph_row,
           break;
         }
 
-      /* draw the character under the cursor */
-      if (cursor_type != NO_CURSOR)
+      /* Draw the character under the cursor.  Other terms only draw
+         the character on top of box cursors, so do the same here.  */
+      if (cursor_type == FILLED_BOX_CURSOR || cursor_type == HOLLOW_BOX_CURSOR)
         draw_phys_cursor_glyph (w, glyph_row, DRAW_CURSOR);
 
       ns_reset_clipping (f);