From 202c1b5b8bdfe995003d349d0cee22e645b829b5 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Fri, 26 Jan 2001 10:25:48 +0000 Subject: [PATCH] (display_line): Simplify check for glyphs fitting entirely in the line. --- src/xdisp.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index b205e8a432a..2081343677e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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); -- 2.39.2