aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2008-10-27 22:30:38 +0000
committerChong Yidong2008-10-27 22:30:38 +0000
commita58c682691de7c718d145c8143a5ee227d7a735b (patch)
tree56f3eaa00fac2a05154c52a44e29155f8ed9d0a9 /src
parentd1a072bf856266928072a37e32241d518abb5611 (diff)
downloademacs-a58c682691de7c718d145c8143a5ee227d7a735b.tar.gz
emacs-a58c682691de7c718d145c8143a5ee227d7a735b.zip
(ns_draw_window_cursor): When hbar cursor is on over-sized glyph, draw
it with the default glyph width.
Diffstat (limited to 'src')
-rw-r--r--src/nsterm.m1
1 files changed, 1 insertions, 0 deletions
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,
2341 case HBAR_CURSOR: 2341 case HBAR_CURSOR:
2342 s = r; 2342 s = r;
2343 s.origin.y += lrint (0.75 * s.size.height); 2343 s.origin.y += lrint (0.75 * s.size.height);
2344 s.size.width = min (FRAME_COLUMN_WIDTH (f), s.size.width);
2344 s.size.height = lrint (s.size.height * 0.25); 2345 s.size.height = lrint (s.size.height * 0.25);
2345 NSRectFill (s); 2346 NSRectFill (s);
2346 break; 2347 break;