0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.4142: build failure with normal features without persistent undo

Problem:    Build failure with normal features without persistent undo.
Solution:   Adjust #ifdef. (closes #9557)
This commit is contained in:
Bram Moolenaar 2022-01-19 11:24:40 +00:00
parent 17dd519633
commit b4868eddd9
2 changed files with 3 additions and 1 deletions

View File

@ -1300,7 +1300,7 @@ retry:
cryptkey = check_for_cryptkey(cryptkey, ptr, &size,
&filesize, newfile, sfname,
&did_ask_for_key);
# ifdef CRYPT_NOT_INPLACE
# if defined(CRYPT_NOT_INPLACE) && defined(FEAT_PERSISTENT_UNDO)
if (curbuf->b_cryptstate != NULL
&& !crypt_works_inplace(curbuf->b_cryptstate))
// reading undo file requires crypt_decode_inplace()

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4142,
/**/
4141,
/**/