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/menu.c b/src/menu.c
index 04cd5f1..e4008ba 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -394,7 +394,7 @@
else if (modes & MENU_TIP_MODE)
map_buf = NULL; // Menu tips are plain text.
else
- map_to = replace_termcodes(map_to, &map_buf,
+ map_to = replace_termcodes(map_to, &map_buf, 0,
REPTERM_DO_LT | (special ? REPTERM_SPECIAL : 0), NULL);
menuarg.modes = modes;
#ifdef FEAT_TOOLBAR