# HG changeset patch # User Chong Yidong # Date 1225146638 0 # Node ID 4ffcb3e1114a15b908a33b98e0b2d6b9a38fa9eb # Parent 36b0ab070ac39136f4fb11055e2cd2471d301255 (ns_draw_window_cursor): When hbar cursor is on over-sized glyph, draw it with the default glyph width. diff -r 36b0ab070ac3 -r 4ffcb3e1114a src/nsterm.m --- a/src/nsterm.m Mon Oct 27 22:29:22 2008 +0000 +++ b/src/nsterm.m Mon Oct 27 22:30:38 2008 +0000 @@ -2341,6 +2341,7 @@ 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;