diff options
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 |