diff options
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 13e26d514..fd7471d3d 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -11123,7 +11123,8 @@ ex_match(eap) ex_X(eap) exarg_T *eap UNUSED; { - (void)get_crypt_key(TRUE, TRUE); + if (curbuf->b_p_cm == 0 || blowfish_self_test() == OK) + (void)get_crypt_key(TRUE, TRUE); } #endif |