From 7e0bae024d4c1673cff31763227ad52b936fa56f Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 11 Aug 2023 23:15:38 +0200 Subject: 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 Co-authored-by: zeertzjq --- src/clientserver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/clientserver.c') diff --git a/src/clientserver.c b/src/clientserver.c index 400a4ad3eb..cfc0ab6613 100644 --- a/src/clientserver.c +++ b/src/clientserver.c @@ -34,7 +34,7 @@ server_to_input_buf(char_u *str) // The last but one parameter of replace_termcodes() is TRUE so that the // sequence is recognised - needed for a real backslash. p_cpo = (char_u *)"Bk"; - str = replace_termcodes(str, &ptr, REPTERM_DO_LT, NULL); + str = replace_termcodes(str, &ptr, 0, REPTERM_DO_LT, NULL); p_cpo = cpo_save; if (*ptr != NUL) // trailing CTRL-V results in nothing -- cgit v1.2.3