changeset 41631:ef0186b9dac0

(x_draw_glyphs): Don't call notice_overwritten_cursor if OVERLAPS_P.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 28 Nov 2001 17:07:59 +0000
parents b24292e7f5ad
children 38da3e26f677
files src/xterm.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Wed Nov 28 16:34:15 2001 +0000
+++ b/src/xterm.c	Wed Nov 28 17:07:59 2001 +0000
@@ -5186,7 +5186,12 @@
   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 @@
       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;