aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c
index df13d7c0db2..cae83f4d269 100644
--- a/src/term.c
+++ b/src/term.c
@@ -1936,6 +1936,8 @@ produce_glyphless_glyph (struct it *it, int for_no_font, Lisp_Object acronym)
1936 { 1936 {
1937 if (! STRINGP (acronym) && CHAR_TABLE_P (Vglyphless_char_display)) 1937 if (! STRINGP (acronym) && CHAR_TABLE_P (Vglyphless_char_display))
1938 acronym = CHAR_TABLE_REF (Vglyphless_char_display, it->c); 1938 acronym = CHAR_TABLE_REF (Vglyphless_char_display, it->c);
1939 if (CONSP (acronym))
1940 acronym = XCDR (acronym);
1939 buf[0] = '['; 1941 buf[0] = '[';
1940 str = STRINGP (acronym) ? SSDATA (acronym) : ""; 1942 str = STRINGP (acronym) ? SSDATA (acronym) : "";
1941 for (len = 0; len < 6 && str[len] && ASCII_BYTE_P (str[len]); len++) 1943 for (len = 0; len < 6 && str[len] && ASCII_BYTE_P (str[len]); len++)