From add448900881f981e2b803e0642770a70b9fe85a Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 28 May 2000 13:23:02 +0000 Subject: [PATCH] (produce_glyphs): Don't treat eight-bit-* charsets as multibyte. From Kenichi Handa. --- src/term.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/term.c b/src/term.c index 794c92ba011..df3ea60e997 100644 --- a/src/term.c +++ b/src/term.c @@ -1856,6 +1856,17 @@ produce_glyphs (it) it->pixel_width = nspaces; it->nglyphs = nspaces; } + else if (SINGLE_BYTE_CHAR_P (it->c)) + { + /* Comming here means that it->c is from display table, thus we + must send the code as is to the terminal. Although there's + no way to know how many columns it occupies on a screen, it + is a good assumption that a single byte code has 1-column + width. */ + it->pixel_width = it->nglyphs = 1; + if (it->glyph_row) + append_glyph (it); + } else { /* A multi-byte character. The display width is fixed for all -- 2.39.5