(x_draw_phys_cursor_glyph): Take into account that a box

cursor on a stretch glyph has a width that depends on
x_stretch_cursor_p.
This commit is contained in:
Gerd Moellmann
2002-04-25 17:28:08 +00:00
parent 62c804f836
commit ef58a7ec87
2 changed files with 13 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2002-04-25 Gerd Moellmann <gerd@gnu.org>
* xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
cursor on a stretch glyph has a width that depends on
x_stretch_cursor_p.
2002-04-25 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
* indent.c (Fvertical_motion): Fix last change.

View File

@@ -11478,7 +11478,13 @@ x_draw_phys_cursor_glyph (w, row, hl)
{
struct glyph *cursor_glyph = get_phys_cursor_glyph (w);
if (cursor_glyph)
w->phys_cursor_width = cursor_glyph->pixel_width;
{
if (x_stretch_cursor_p)
w->phys_cursor_width = cursor_glyph->pixel_width;
else
w->phys_cursor_width = min (CANON_X_UNIT (XFRAME (w->frame)),
cursor_glyph->pixel_width);
}
}
/* When we erase the cursor, and ROW is overlapped by other