changeset 29262:b7059c9f98ac

(produce_glyphs): Don't treat eight-bit-* charsets as multibyte. From Kenichi Handa.
author Eli Zaretskii <eliz@gnu.org>
date Sun, 28 May 2000 13:23:02 +0000
parents 8f30b82a176c
children 167d236e633b
files src/term.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/term.c	Sun May 28 10:54:01 2000 +0000
+++ b/src/term.c	Sun May 28 13:23:02 2000 +0000
@@ -1856,6 +1856,17 @@
       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