aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Third2019-02-16 10:56:13 +0000
committerAlan Third2019-03-09 09:17:08 +0000
commitd2270d8fc93b5fb0b82fec4d85d122ea4e38dff3 (patch)
tree8d0ed1cab99a123a68622280cd8ffa04dfcbe85c /src
parenteed512814c45cd5859a1814bf07ad18ea3fa3b1a (diff)
downloademacs-d2270d8fc93b5fb0b82fec4d85d122ea4e38dff3.tar.gz
emacs-d2270d8fc93b5fb0b82fec4d85d122ea4e38dff3.zip
Don't redraw the glyph on top of bar cursors
* src/nsterm.m (ns_draw_window_cursor): Limit when we redraw the glyph.
Diffstat (limited to 'src')
-rw-r--r--src/nsterm.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index ccf8ecc4d26..81d36be6cc0 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -3262,8 +3262,9 @@ ns_draw_window_cursor (struct window *w, struct glyph_row *glyph_row,
3262 break; 3262 break;
3263 } 3263 }
3264 3264
3265 /* draw the character under the cursor */ 3265 /* Draw the character under the cursor. Other terms only draw
3266 if (cursor_type != NO_CURSOR) 3266 the character on top of box cursors, so do the same here. */
3267 if (cursor_type == FILLED_BOX_CURSOR || cursor_type == HOLLOW_BOX_CURSOR)
3267 draw_phys_cursor_glyph (w, glyph_row, DRAW_CURSOR); 3268 draw_phys_cursor_glyph (w, glyph_row, DRAW_CURSOR);
3268 3269
3269 ns_reset_clipping (f); 3270 ns_reset_clipping (f);