Commit a98b5ed9 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(display_line): On ttys, produce more than one

truncation glyph for multibyte characters that don't fit on the
line.
parent fcb500ea
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
......
......@@ -12327,8 +12327,17 @@ display_line (it)
/* 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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment