comparison src/optionstr.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 4091ae33b9ec
children 1f3bcb7f3bd0
comparison
equal deleted inserted replaced
32735:3046c7ce2469 32736:161ae1985d81
2100 char_u *p; 2100 char_u *p;
2101 2101
2102 // translate key codes like in a mapping 2102 // translate key codes like in a mapping
2103 if (*p_pt) 2103 if (*p_pt)
2104 { 2104 {
2105 (void)replace_termcodes(p_pt, &p, 2105 (void)replace_termcodes(p_pt, &p, 0,
2106 REPTERM_FROM_PART | REPTERM_DO_LT, NULL); 2106 REPTERM_FROM_PART | REPTERM_DO_LT, NULL);
2107 if (p != NULL) 2107 if (p != NULL)
2108 { 2108 {
2109 free_string_option(p_pt); 2109 free_string_option(p_pt);
2110 p_pt = p; 2110 p_pt = p;