changeset 35388:1ad9046911a2

(display_string): Fix previous change.
author Kenichi Handa <handa@m17n.org>
date Thu, 18 Jan 2001 12:14:48 +0000
parents 53bca8fff550
children 6fa1f816cb97
files src/xdisp.c
diffstat 1 files changed, 10 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Thu Jan 18 12:14:25 2001 +0000
+++ b/src/xdisp.c	Thu Jan 18 12:14:48 2001 +0000
@@ -13790,14 +13790,18 @@
 		{
 		  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;
 	    }