Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/option.c +++ b/src/option.c @@ -4017,6 +4017,8 @@ get_option_value( if ((char_u **)varp == &curbuf->b_p_key && **(char_u **)(varp) != NUL) *stringval = vim_strsave((char_u *)"*****"); + else if ((char_u **)varp == &p_pt) // 'pastetoggle' + *stringval = str2special_save(*(char_u **)(varp), FALSE); else #endif *stringval = vim_strsave(*(char_u **)(varp));