From 51f0bc31d3cf512508419064faac0e5b7e52c98b Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 9 May 2022 13:33:39 +0100 Subject: [PATCH] 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) --- src/option.c | 8 ++++---- src/version.c | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/option.c b/src/option.c index e93c14cf41..43f584d1d3 100644 --- a/src/option.c +++ b/src/option.c @@ -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; diff --git a/src/version.c b/src/version.c index 8f33f05aac..c23757fe23 100644 --- a/src/version.c +++ b/src/version.c @@ -746,6 +746,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4926, /**/ 4925, /**/