Skip to content

Commit f595588

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 32f1212 + 4a8c2cf commit f595588

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/memfile.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,8 +1032,9 @@ mf_read(mfp, hp)
10321032
}
10331033

10341034
#ifdef FEAT_CRYPT
1035-
/* Decrypt if 'key' is set and this is a data block. */
1036-
if (*mfp->mf_buffer->b_p_key != NUL)
1035+
/* Decrypt if 'key' is set and this is a data block. And when changing the
1036+
* key. */
1037+
if (*mfp->mf_buffer->b_p_key != NUL || mfp->mf_old_key != NULL)
10371038
ml_decrypt_data(mfp, hp->bh_data, offset, size);
10381039
#endif
10391040

src/testdir/test_cdo.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Tests for the :cdo, :cfdo, :ldo and :lfdo commands
22

33
STARTTEST
44
:so small.vim
5+
:lang mess C
56
:if !has('quickfix') | e! test.ok | wq! test.out | endif
67

78
:call writefile(["Line1", "Line2", "Line3"], 'Xtestfile1')

src/version.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,10 @@ static char *(features[]) =
756756

757757
static int included_patches[] =
758758
{ /* Add new patch number below this line */
759+
/**/
760+
979,
761+
/**/
762+
978,
759763
/**/
760764
977,
761765
/**/

0 commit comments

Comments
 (0)