aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-01-10 14:43:30 +0000
committerGerd Moellmann2001-01-10 14:43:30 +0000
commita98b5ed9fd116b3430b1f0e2ea9852502c285f31 (patch)
treebf6ba85edd256a4298a80fdf4d2f66b1e9ea4edd /src
parentfcb500ea434e48278dc790ce1b581ce8381f7649 (diff)
downloademacs-a98b5ed9fd116b3430b1f0e2ea9852502c285f31.tar.gz
emacs-a98b5ed9fd116b3430b1f0e2ea9852502c285f31.zip
(display_line): On ttys, produce more than one
truncation glyph for multibyte characters that don't fit on the line.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xdisp.c13
2 files changed, 15 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index dd936bd97e2..c98e9782bbd 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
12001-01-10 Gerd Moellmann <gerd@gnu.org> 12001-01-10 Gerd Moellmann <gerd@gnu.org>
2 2
3 * xdisp.c (display_line): On ttys, produce more than one
4 truncation glyph for multibyte characters that don't fit on the
5 line.
6
3 * xselect.c (x_reply_selection_request): Add a comment. 7 * xselect.c (x_reply_selection_request): Add a comment.
4 8
5 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and 9 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
diff --git a/src/xdisp.c b/src/xdisp.c
index 367408dbdba..a68bd5d40fb 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -12327,8 +12327,17 @@ display_line (it)
12327 /* Maybe add truncation glyphs. */ 12327 /* Maybe add truncation glyphs. */
12328 if (!FRAME_WINDOW_P (it->f)) 12328 if (!FRAME_WINDOW_P (it->f))
12329 { 12329 {
12330 --it->glyph_row->used[TEXT_AREA]; 12330 int i, n;
12331 produce_special_glyphs (it, IT_TRUNCATION); 12331
12332 for (i = row->used[TEXT_AREA] - 1; i > 0; --i)
12333 if (!CHAR_GLYPH_PADDING_P (row->glyphs[TEXT_AREA][i]))
12334 break;
12335
12336 for (n = row->used[TEXT_AREA]; i < n; ++i)
12337 {
12338 row->used[TEXT_AREA] = i;
12339 produce_special_glyphs (it, IT_TRUNCATION);
12340 }
12332 } 12341 }
12333 12342
12334 row->truncated_on_right_p = 1; 12343 row->truncated_on_right_p = 1;