]> git.eshelyaron.com Git - emacs.git/commitdiff
(display_line): Simplify check for glyphs fitting
authorGerd Moellmann <gerd@gnu.org>
Fri, 26 Jan 2001 10:25:48 +0000 (10:25 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 26 Jan 2001 10:25:48 +0000 (10:25 +0000)
entirely in the line.

src/xdisp.c

index b205e8a432a1a7627bec9165b941b5c3468a6137..2081343677ec4bb0e081531f39c10bbd94470e17 100644 (file)
@@ -12227,12 +12227,9 @@ display_line (it)
       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);