>From 1638ac50070d6802329eae13eeba7926ed4c9149 Mon Sep 17 00:00:00 2001 From: Alan Third Date: Sat, 16 Feb 2019 10:56:13 +0000 Subject: [PATCH] Prevent redrawing the glyph on top of bar cursors * src/nsterm.m (ns_draw_window_cursor): Limit when we redraw the glyph. --- src/nsterm.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/nsterm.m b/src/nsterm.m index bbd2c84214..5d2b0a0812 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -3126,8 +3126,9 @@ Note that CURSOR_WIDTH is meaningful only for (h)bar cursors. 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); -- 2.20.1