aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorGerd Moellmann2001-11-28 17:09:34 +0000
committerGerd Moellmann2001-11-28 17:09:34 +0000
commitbb313871fb2099a0caebb5ee3006013de424a737 (patch)
treec95426958223bd88f8bc1c835674fd2ee83fec71 /src/xterm.c
parentef6e0ec76c1ccfb9e9e0a2494c0d717c62af8368 (diff)
downloademacs-bb313871fb2099a0caebb5ee3006013de424a737.tar.gz
emacs-bb313871fb2099a0caebb5ee3006013de424a737.zip
(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 7edb0121763..c6ff4e6d08e 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)
5186 for (s = head; s; s = s->next) 5186 for (s = head; s; s = s->next)
5187 x_draw_glyph_string (s); 5187 x_draw_glyph_string (s);
5188 5188
5189 if (area == TEXT_AREA && !row->full_width_p) 5189 if (area == TEXT_AREA
5190 && !row->full_width_p
5191 /* When drawing overlapping rows, only the glyph strings'
5192 foreground is drawn, which doesn't erase a cursor
5193 completely. */
5194 && !overlaps_p)
5190 { 5195 {
5191 int x0 = head ? head->x : x; 5196 int x0 = head ? head->x : x;
5192 int x1 = tail ? tail->x + tail->background_width : x; 5197 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)
5194 x0 = FRAME_TO_WINDOW_PIXEL_X (w, x0); 5199 x0 = FRAME_TO_WINDOW_PIXEL_X (w, x0);
5195 x1 = FRAME_TO_WINDOW_PIXEL_X (w, x1); 5200 x1 = FRAME_TO_WINDOW_PIXEL_X (w, x1);
5196 5201
5197 if (!row->full_width_p && XFASTINT (w->left_margin_width) != 0) 5202 if (XFASTINT (w->left_margin_width) != 0)
5198 { 5203 {
5199 int left_area_width = window_box_width (w, LEFT_MARGIN_AREA); 5204 int left_area_width = window_box_width (w, LEFT_MARGIN_AREA);
5200 x0 -= left_area_width; 5205 x0 -= left_area_width;