# HG changeset patch # User Kenichi Handa # Date 979820088 0 # Node ID 1ad9046911a24c042fa698a59e06e0f7e41eb5e6 # Parent 53bca8fff550db3e5ecac9f423b7b10d932a6712 (display_string): Fix previous change. diff -r 53bca8fff550 -r 1ad9046911a2 src/xdisp.c --- a/src/xdisp.c Thu Jan 18 12:14:25 2001 +0000 +++ b/src/xdisp.c Thu Jan 18 12:14:48 2001 +0000 @@ -13790,14 +13790,18 @@ { 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; }