diff options
| author | Alan Third | 2016-05-21 21:04:39 +0200 |
|---|---|---|
| committer | Anders Lindgren | 2016-05-21 21:04:39 +0200 |
| commit | e5015c5d9632a0bf685c093249ae4a7d3e825b13 (patch) | |
| tree | 042c6a1c76c46361b1870d97a74d87da24d42ae6 /src | |
| parent | cb5af79249c2c9e21405e6237db11935b50dd1c5 (diff) | |
| download | emacs-e5015c5d9632a0bf685c093249ae4a7d3e825b13.tar.gz emacs-e5015c5d9632a0bf685c093249ae4a7d3e825b13.zip | |
Fix bug#16856, cursor leaves garbage in fringe on OS X.
* src/nsterm.m (ns_draw_window_cursor): Prevent the cursor from
being drawn outside the text area.
Diffstat (limited to 'src')
| -rw-r--r-- | src/nsterm.m | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nsterm.m b/src/nsterm.m index b815d775d76..d79e4f4017c 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -2873,9 +2873,8 @@ ns_draw_window_cursor (struct window *w, struct glyph_row *glyph_row, | |||
| 2873 | r.size.height = h; | 2873 | r.size.height = h; |
| 2874 | r.size.width = w->phys_cursor_width; | 2874 | r.size.width = w->phys_cursor_width; |
| 2875 | 2875 | ||
| 2876 | /* TODO: only needed in rare cases with last-resort font in HELLO.. | 2876 | /* Prevent the cursor from being drawn outside the text area. */ |
| 2877 | should we do this more efficiently? */ | 2877 | ns_clip_to_row (w, glyph_row, TEXT_AREA, NO); /* do ns_focus(f, &r, 1); if remove */ |
| 2878 | ns_clip_to_row (w, glyph_row, ANY_AREA, NO); /* do ns_focus(f, &r, 1); if remove */ | ||
| 2879 | 2878 | ||
| 2880 | 2879 | ||
| 2881 | face = FACE_OPT_FROM_ID (f, phys_cursor_glyph->face_id); | 2880 | face = FACE_OPT_FROM_ID (f, phys_cursor_glyph->face_id); |