2001-01-10 Gerd Moellmann <gerd@gnu.org>
+ * xdisp.c (display_line): On ttys, produce more than one
+ truncation glyph for multibyte characters that don't fit on the
+ line.
+
* xselect.c (x_reply_selection_request): Add a comment.
* xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
/* Maybe add truncation glyphs. */
if (!FRAME_WINDOW_P (it->f))
{
- --it->glyph_row->used[TEXT_AREA];
- produce_special_glyphs (it, IT_TRUNCATION);
+ 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)
+ {
+ row->used[TEXT_AREA] = i;
+ produce_special_glyphs (it, IT_TRUNCATION);
+ }
}
row->truncated_on_right_p = 1;