Commit 9b938637 authored by Eli Zaretskii's avatar Eli Zaretskii

xterm.c (x_draw_bar_cursor): Fix last change.

parent 0d68907d
......@@ -7152,6 +7152,8 @@ x_draw_bar_cursor (struct window *w, struct glyph_row *row, int width, enum text
if (kind == BAR_CURSOR)
{
int x = WINDOW_TEXT_TO_FRAME_PIXEL_X (w, w->phys_cursor.x);
if (width < 0)
width = FRAME_CURSOR_WIDTH (f);
width = min (cursor_glyph->pixel_width, width);
......@@ -7163,8 +7165,7 @@ x_draw_bar_cursor (struct window *w, struct glyph_row *row, int width, enum text
if ((cursor_glyph->resolved_level & 1) != 0)
x += cursor_glyph->pixel_width - width;
XFillRectangle (dpy, window, gc,
WINDOW_TEXT_TO_FRAME_PIXEL_X (w, w->phys_cursor.x),
XFillRectangle (dpy, window, gc, x,
WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y),
width, row->height);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment