From: Chong Yidong Date: Mon, 27 Oct 2008 22:30:38 +0000 (+0000) Subject: (ns_draw_window_cursor): When hbar cursor is on over-sized glyph, draw X-Git-Tag: emacs-pretest-23.0.90~2150 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a58c682691de7c718d145c8143a5ee227d7a735b;p=emacs.git (ns_draw_window_cursor): When hbar cursor is on over-sized glyph, draw it with the default glyph width. --- diff --git a/src/nsterm.m b/src/nsterm.m index 5cd64f1d4a3..7b9cebac875 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -2341,6 +2341,7 @@ ns_draw_window_cursor (struct window *w, struct glyph_row *glyph_row, case HBAR_CURSOR: s = r; s.origin.y += lrint (0.75 * s.size.height); + s.size.width = min (FRAME_COLUMN_WIDTH (f), s.size.width); s.size.height = lrint (s.size.height * 0.25); NSRectFill (s); break;