Mercurial > vim
diff src/clientserver.c @ 32736:161ae1985d81 v9.0.1687
patch 9.0.1687: mapset() not properly handling script ID
Commit: https://github.com/vim/vim/commit/7e0bae024d4c1673cff31763227ad52b936fa56f
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri Aug 11 23:15:38 2023 +0200
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>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 11 Aug 2023 23:30:03 +0200 |
parents | 695b50472e85 |
children | 6315b95cba59 |
line wrap: on
line diff
--- 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 // <lt> 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