From c4b203d17c1bca08e92ea04951031f6a0e63482d Mon Sep 17 00:00:00 2001 From: Markus Braun Date: Fri, 15 Aug 2008 09:16:44 +0000 Subject: [PATCH] Patch from Sebastian Luettich Fix issue with symmetric encryption and set recipients. --- plugin/gnupg.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin/gnupg.vim b/plugin/gnupg.vim index 61660c2..7b9d3de 100644 --- a/plugin/gnupg.vim +++ b/plugin/gnupg.vim @@ -82,6 +82,8 @@ " - Karl-Heinz Ruskowski for patch to fix unknown recipients and trust model " and patient beta testing. " - Giel van Schijndel for patch to get GPG_TTY dynamically. +" - Sebastian Luettich for patch to fix issue with symmetric encryption an set +" recipients. " " Section: Plugin header {{{1 if v:version < 700 @@ -368,6 +370,7 @@ function s:GPGEncrypt() let b:GPGOptions=[] if (exists("g:GPGPreferSymmetric") && g:GPGPreferSymmetric == 1) let b:GPGOptions+=["symmetric"] + let b:GPGRecipients=[] else let b:GPGOptions+=["encrypt"] endif @@ -387,7 +390,7 @@ function s:GPGEncrypt() let [ recipients, unknownrecipients ] = s:GPGCheckRecipients(b:GPGRecipients) " check if there are unknown recipients and warn - if(len(unknownrecipients) > 0) + if (len(unknownrecipients) > 0) echohl GPGWarning echom "Please use GPGEditRecipients to correct!!" echo