summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'term.c')
-rw-r--r--term.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/term.c b/term.c
index e7c25879..248fd268 100644
--- a/term.c
+++ b/term.c
@@ -30,6 +30,7 @@
#include "mandoc.h"
#include "chars.h"
#include "out.h"
+#include "regs.h"
#include "term.h"
#include "main.h"
@@ -377,6 +378,11 @@ res(struct termp *p, const char *word, size_t len)
size_t sz;
rhs = chars_a2res(p->symtab, word, len, &sz);
+ if (NULL == rhs) {
+ rhs = roff_getstrn(word, len);
+ if (rhs)
+ sz = strlen(rhs);
+ }
if (rhs)
encode(p, rhs, sz);
}