Mercurial > vim
comparison src/fileio.c @ 27227:6ce83b3745c0 v8.2.4142
patch 8.2.4142: build failure with normal features without persistent undo
Commit: https://github.com/vim/vim/commit/b4868eddd9cdc7086c88a7a3699dd435d34ae904
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 19 11:24:40 2022 +0000
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 https://github.com/vim/vim/issues/9557)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 19 Jan 2022 12:30:05 +0100 |
parents | c9474ae175f4 |
children | 6ca2d8f4cd32 |
comparison
equal
deleted
inserted
replaced
27226:1fa8aefced2e | 27227:6ce83b3745c0 |
---|---|
1298 if (filesize == 0 && size > 0) | 1298 if (filesize == 0 && size > 0) |
1299 { | 1299 { |
1300 cryptkey = check_for_cryptkey(cryptkey, ptr, &size, | 1300 cryptkey = check_for_cryptkey(cryptkey, ptr, &size, |
1301 &filesize, newfile, sfname, | 1301 &filesize, newfile, sfname, |
1302 &did_ask_for_key); | 1302 &did_ask_for_key); |
1303 # ifdef CRYPT_NOT_INPLACE | 1303 # if defined(CRYPT_NOT_INPLACE) && defined(FEAT_PERSISTENT_UNDO) |
1304 if (curbuf->b_cryptstate != NULL | 1304 if (curbuf->b_cryptstate != NULL |
1305 && !crypt_works_inplace(curbuf->b_cryptstate)) | 1305 && !crypt_works_inplace(curbuf->b_cryptstate)) |
1306 // reading undo file requires crypt_decode_inplace() | 1306 // reading undo file requires crypt_decode_inplace() |
1307 read_undo_file = FALSE; | 1307 read_undo_file = FALSE; |
1308 # endif | 1308 # endif |