aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorGerd Moellmann <[email protected]>2001-11-28 17:09:34 +0000
committerGerd Moellmann <[email protected]>2001-11-28 17:09:34 +0000
commitbb313871fb2099a0caebb5ee3006013de424a737 (patch)
treec95426958223bd88f8bc1c835674fd2ee83fec71 /src/xterm.c
parentef6e0ec76c1ccfb9e9e0a2494c0d717c62af8368 (diff)
(x_draw_glyphs): Don't call notice_overwritten_cursor if
OVERLAPS_P.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 7edb012176..c6ff4e6d08 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -5186,7 +5186,12 @@ x_draw_glyphs (w, x, row, area, start, end, hl, overlaps_p)
for (s = head; s; s = s->next)
x_draw_glyph_string (s);
- if (area == TEXT_AREA && !row->full_width_p)
+ if (area == TEXT_AREA
+ && !row->full_width_p
+ /* When drawing overlapping rows, only the glyph strings'
+ foreground is drawn, which doesn't erase a cursor
+ completely. */
+ && !overlaps_p)
{
int x0 = head ? head->x : x;
int x1 = tail ? tail->x + tail->background_width : x;
@@ -5194,7 +5199,7 @@ x_draw_glyphs (w, x, row, area, start, end, hl, overlaps_p)
x0 = FRAME_TO_WINDOW_PIXEL_X (w, x0);
x1 = FRAME_TO_WINDOW_PIXEL_X (w, x1);
- if (!row->full_width_p && XFASTINT (w->left_margin_width) != 0)
+ if (XFASTINT (w->left_margin_width) != 0)
{
int left_area_width = window_box_width (w, LEFT_MARGIN_AREA);
x0 -= left_area_width;