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/usercmd.c b/src/usercmd.c
index 7d84462..57435fa 100644
--- a/src/usercmd.c
+++ b/src/usercmd.c
@@ -990,7 +990,7 @@
char_u *rep_buf = NULL;
garray_T *gap;
- replace_termcodes(rep, &rep_buf, 0, NULL);
+ replace_termcodes(rep, &rep_buf, 0, 0, NULL);
if (rep_buf == NULL)
{
// can't replace termcodes - try using the string as is