]> git.eshelyaron.com Git - emacs.git/commitdiff
(display_string): Fix previous change.
authorKenichi Handa <handa@m17n.org>
Thu, 18 Jan 2001 12:14:48 +0000 (12:14 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 18 Jan 2001 12:14:48 +0000 (12:14 +0000)
src/xdisp.c

index 00e325b325151dd05c74851d245f28d4a2d4fb5a..6ca639bcbfa8011e8e4e193e00cab8be50fb5a80 100644 (file)
@@ -13790,14 +13790,18 @@ display_string (string, lisp_string, face_string, face_string_pos,
                {
                  int i, n;
 
-                 for (i = row->used[TEXT_AREA] - 1; i > 0; --i)
-                   if (!CHAR_GLYPH_PADDING_P (row->glyphs[TEXT_AREA][i]))
-                     break;
-                 for (n = row->used[TEXT_AREA]; i < n; ++i)
+                 if (it->current_x > it->last_visible_x)
                    {
-                     row->used[TEXT_AREA] = i;
-                     produce_special_glyphs (it, IT_TRUNCATION);
+                     for (i = row->used[TEXT_AREA] - 1; i > 0; --i)
+                       if (!CHAR_GLYPH_PADDING_P (row->glyphs[TEXT_AREA][i]))
+                         break;
+                     for (n = row->used[TEXT_AREA]; i < n; ++i)
+                       {
+                         row->used[TEXT_AREA] = i;
+                         produce_special_glyphs (it, IT_TRUNCATION);
+                       }
                    }
+                 produce_special_glyphs (it, IT_TRUNCATION);
                }
              it->glyph_row->truncated_on_right_p = 1;
            }