Edit recipients when opening a new file

The previous behaviour of this plugin was to open the recipient pane
immediately after opening a new file with the correct extension. The
documentation states that this should still occur, so this commit
implements the behaviour in a slightly different manner than the old
plugin.
This commit is contained in:
Jonty Wareing 2013-02-22 19:39:38 +00:00
parent 57695361bb
commit 3e060c5ea0

View File

@ -389,6 +389,13 @@ function s:GPGDecrypt(bufread)
" File doesn't exist yet, so nothing to decrypt " File doesn't exist yet, so nothing to decrypt
if empty(glob(filename)) 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 return
endif endif