patch 9.0.1687: mapset() not properly handling script ID
Problem: mapset() not properly handling script ID
Solution: replace_termcodes() may accept a script ID
closes: #12699
closes: #12697
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
diff --git a/src/terminal.c b/src/terminal.c
index d235eb3..cb889ae 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -867,7 +867,7 @@
vim_free(opt.jo_eof_chars);
p = skiptowhite(cmd);
*p = NUL;
- keys = replace_termcodes(ep + 1, &buf,
+ keys = replace_termcodes(ep + 1, &buf, 0,
REPTERM_FROM_PART | REPTERM_DO_LT | REPTERM_SPECIAL, NULL);
opt.jo_set2 |= JO2_EOF_CHARS;
opt.jo_eof_chars = vim_strsave(keys);