0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 8.2.4926: #ifdef for crypt feature around too many lines

Problem:    #ifdef for crypt feature around too many lines.
Solution:   Move code outside of #ifdef. (closes #10388)
This commit is contained in:
zeertzjq
2022-05-09 13:33:39 +01:00
committed by Bram Moolenaar
parent 53a70289c2
commit 51f0bc31d3
2 changed files with 6 additions and 4 deletions

View File

@@ -4012,15 +4012,15 @@ get_option_value(
return gov_hidden_string;
if (stringval != NULL)
{
if ((char_u **)varp == &p_pt) // 'pastetoggle'
*stringval = str2special_save(*(char_u **)(varp), FALSE);
#ifdef FEAT_CRYPT
// never return the value of the crypt key
if ((char_u **)varp == &curbuf->b_p_key
else 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
else
*stringval = vim_strsave(*(char_u **)(varp));
}
return gov_string;