From 9299cb15209728712e23eeddf6c7b158a48e2606 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 18 Jan 2001 12:14:48 +0000 Subject: [PATCH] (display_string): Fix previous change. --- src/xdisp.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index 00e325b3251..6ca639bcbfa 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -13790,14 +13790,18 @@ display_string (string, lisp_string, face_string, face_string_pos, { 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) + if (it->current_x > it->last_visible_x) { - row->used[TEXT_AREA] = i; - produce_special_glyphs (it, IT_TRUNCATION); + 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); + } } + produce_special_glyphs (it, IT_TRUNCATION); } it->glyph_row->truncated_on_right_p = 1; } -- 2.39.5