]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.4926: #ifdef for crypt feature around too many lines v8.2.4926
authorzeertzjq <zeertzjq@outlook.com>
Mon, 9 May 2022 12:33:39 +0000 (13:33 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 9 May 2022 12:33:39 +0000 (13:33 +0100)
Problem:    #ifdef for crypt feature around too many lines.
Solution:   Move code outside of #ifdef. (closes #10388)

src/option.c
src/version.c

index e93c14cf41bc5bea5372bb307aafcabb5184a785..43f584d1d35f21730076d019777bcbe71a49745f 100644 (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;
index 8f33f05aac2e7df800543ff488e6effac294845b..c23757fe2334a5a941a77cfdde7a8a25390f96bb 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4926,
 /**/
     4925,
 /**/