Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
32735:3046c7ce2469 | 32736:161ae1985d81 |
---|---|
32 // k set - keycodes are *not* reverse-engineered | 32 // k set - keycodes are *not* reverse-engineered |
33 // < unset - <Key> sequences *are* interpreted | 33 // < unset - <Key> sequences *are* interpreted |
34 // The last but one parameter of replace_termcodes() is TRUE so that the | 34 // The last but one parameter of replace_termcodes() is TRUE so that the |
35 // <lt> sequence is recognised - needed for a real backslash. | 35 // <lt> sequence is recognised - needed for a real backslash. |
36 p_cpo = (char_u *)"Bk"; | 36 p_cpo = (char_u *)"Bk"; |
37 str = replace_termcodes(str, &ptr, REPTERM_DO_LT, NULL); | 37 str = replace_termcodes(str, &ptr, 0, REPTERM_DO_LT, NULL); |
38 p_cpo = cpo_save; | 38 p_cpo = cpo_save; |
39 | 39 |
40 if (*ptr != NUL) // trailing CTRL-V results in nothing | 40 if (*ptr != NUL) // trailing CTRL-V results in nothing |
41 { | 41 { |
42 /* | 42 /* |