Merge pull request #8 from Jonty/edit-recipients-on-new-file
Edit recipients when opening a new file
This commit is contained in:
commit
5ec1093bd7
@ -394,6 +394,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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user