summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/term.c b/src/term.c
index 7c92f3e75..f93fde84b 100644
--- a/src/term.c
+++ b/src/term.c
@@ -5488,8 +5488,9 @@ replace_termcodes(
}
#endif
- slen = trans_special(&src, result + dlen, TRUE, FALSE,
- (flags & REPTERM_NO_SIMPLIFY) == 0, did_simplify);
+ slen = trans_special(&src, result + dlen, FSK_KEYCODE
+ | ((flags & REPTERM_NO_SIMPLIFY) ? 0 : FSK_SIMPLIFY),
+ did_simplify);
if (slen)
{
dlen += slen;