]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_draw_glyph_string): Stop drawing the background of the next glyph
authorChong Yidong <cyd@stupidchicken.com>
Sat, 15 Nov 2008 05:20:33 +0000 (05:20 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 15 Nov 2008 05:20:33 +0000 (05:20 +0000)
string once past the overhang width.

src/w32term.c

index 3e73ceba428e2ac6233c34e3083276661ed167a5..69ebaf554f0c6fe53d73a3b8123ef23585049801 100644 (file)
@@ -2241,7 +2241,8 @@ x_draw_glyph_string (s)
     {
       int width;
       struct glyph_string *next;
-      for (width = 0, next = s->next; next;
+      for (width = 0, next = s->next;
+          next && width < s->right_overhang;
            width += next->width, next = next->next)
         if (next->first_glyph->type != IMAGE_GLYPH)
           {