changeset 35200:13258951565d

(display_line): On ttys, produce more than one truncation glyph for multibyte characters that don't fit on the line.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 10 Jan 2001 14:42:57 +0000
parents aa38d1de35cb
children 4e9ab559a685
files src/xdisp.c
diffstat 1 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Wed Jan 10 14:42:53 2001 +0000
+++ b/src/xdisp.c	Wed Jan 10 14:42:57 2001 +0000
@@ -12327,8 +12327,17 @@
 	  /* Maybe add truncation glyphs.  */
 	  if (!FRAME_WINDOW_P (it->f))
 	    {
-	      --it->glyph_row->used[TEXT_AREA];
-	      produce_special_glyphs (it, IT_TRUNCATION);
+	      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)
+		{
+		  row->used[TEXT_AREA] = i;
+		  produce_special_glyphs (it, IT_TRUNCATION);
+		}
 	    }
 	  
 	  row->truncated_on_right_p = 1;