changeset 35596:37e5851b22b2

(display_line): Simplify check for glyphs fitting entirely in the line.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 26 Jan 2001 10:25:48 +0000
parents fd71dffbdd55
children 712bca47575d
files src/xdisp.c
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Fri Jan 26 10:16:41 2001 +0000
+++ b/src/xdisp.c	Fri Jan 26 10:25:48 2001 +0000
@@ -12227,12 +12227,9 @@
       hpos_before = it->hpos;
       x_before = x;
 	  
-      if ((nglyphs == 1
-	   /* A wide multibyte character produces multiple glyphs on
-	      tty window  .*/
-	   || !SINGLE_BYTE_CHAR_P (it->c))
-	  && it->current_x < it->last_visible_x)
-	{
+      if (it->current_x < it->last_visible_x)
+	{
+	  /* Glyphs produced fit entirely in the line.  */
 	  it->hpos += nglyphs;
 	  row->ascent = max (row->ascent, it->max_ascent);
 	  row->height = max (row->height, it->max_ascent + it->max_descent);