Merge pull request #8 from Jonty/edit-recipients-on-new-file

Edit recipients when opening a new file
This commit is contained in:
James McCoy 2013-02-22 12:42:21 -08:00
commit 5ec1093bd7

View File

@ -394,6 +394,13 @@ function s:GPGDecrypt(bufread)
" File doesn't exist yet, so nothing to decrypt
if empty(glob(filename))
" This is a new file, so force the user to edit the recipient list if
" they open a new file and public keys are preferred
if (exists("g:GPGPreferSymmetric") && g:GPGPreferSymmetric == 0)
call s:GPGEditRecipients()
endif
return
endif