changeset 99170:0310a76120f5

(x_draw_bar_cursor): When hbar cursor is on over-sized glyph, draw it with the default glyph width.
author Chong Yidong <cyd@stupidchicken.com>
date Mon, 27 Oct 2008 22:20:46 +0000
parents 3079e132966c
children 36b0ab070ac3
files src/xterm.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Mon Oct 27 22:20:27 2008 +0000
+++ b/src/xterm.c	Mon Oct 27 22:20:46 2008 +0000
@@ -7441,7 +7441,7 @@
 			  WINDOW_TEXT_TO_FRAME_PIXEL_X (w, w->phys_cursor.x),
 			  WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y +
 						   row->height - width),
-			  cursor_glyph->pixel_width,
+			  min (FRAME_COLUMN_WIDTH (f), cursor_glyph->pixel_width),
 			  width);
 
       XSetClipMask (dpy, gc, None);