mirror of
https://github.com/Ascyii/vim-gnupg.git
synced 2026-01-01 06:14:24 -05:00
Merge pull request #8 from Jonty/edit-recipients-on-new-file
Edit recipients when opening a new file
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user