comparison src/option.c @ 28800:fea88e555652 v8.2.4924

patch 8.2.4924: maparg() may return a string that cannot be reused Commit: https://github.com/vim/vim/commit/0519ce00394474055bd58c089ea90a19986443eb Author: zeertzjq <zeertzjq@outlook.com> Date: Mon May 9 12:16:19 2022 +0100 patch 8.2.4924: maparg() may return a string that cannot be reused Problem: maparg() may return a string that cannot be reused. Solution: use msg_outtrans_special() instead of str2special(). (closes #10384)
author Bram Moolenaar <Bram@vim.org>
date Mon, 09 May 2022 13:30:03 +0200
parents fd5942a62312
children 12bbd8a31cac
comparison
equal deleted inserted replaced
28799:6f38b93c8683 28800:fea88e555652
4015 #ifdef FEAT_CRYPT 4015 #ifdef FEAT_CRYPT
4016 // never return the value of the crypt key 4016 // never return the value of the crypt key
4017 if ((char_u **)varp == &curbuf->b_p_key 4017 if ((char_u **)varp == &curbuf->b_p_key
4018 && **(char_u **)(varp) != NUL) 4018 && **(char_u **)(varp) != NUL)
4019 *stringval = vim_strsave((char_u *)"*****"); 4019 *stringval = vim_strsave((char_u *)"*****");
4020 else if ((char_u **)varp == &p_pt) // 'pastetoggle'
4021 *stringval = str2special_save(*(char_u **)(varp), FALSE);
4020 else 4022 else
4021 #endif 4023 #endif
4022 *stringval = vim_strsave(*(char_u **)(varp)); 4024 *stringval = vim_strsave(*(char_u **)(varp));
4023 } 4025 }
4024 return gov_string; 4026 return gov_string;