Mercurial > emacs
diff src/xdisp.c @ 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 | 38b39254db75 |
children | c332de00af36 |
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);