diff --git a/autoload/gnupg.vim b/autoload/gnupg.vim index f9247b2..c35661a 100644 --- a/autoload/gnupg.vim +++ b/autoload/gnupg.vim @@ -1,5 +1,5 @@ " Name: autoload/gnupg.vim -" Last Change: 2020 Nov 09 +" Last Change: 2020 Nov 11 " Maintainer: James McCoy " Original Author: Markus Braun " Summary: Vim plugin for transparent editing of gpg encrypted files. @@ -685,7 +685,8 @@ function gnupg#edit_recipients() augroup GPGRecipients au! * " add a autocommand to regenerate the recipients after a write - autocmd BufHidden,BufUnload,BufWriteCmd call s:GPGFinishRecipientsBuffer() + autocmd BufHidden,BufWriteCmd call s:GPGFinishRecipientsBuffer() + autocmd BufUnload exe 'au! GPGRecipients * ') .'>' augroup END " put some comments to the scratch buffer @@ -861,7 +862,8 @@ function gnupg#edit_options() augroup GPGOptions au! * " add a autocommand to regenerate the options after a write - autocmd BufHidden,BufUnload,BufWriteCmd call s:GPGFinishOptionsBuffer() + autocmd BufHidden,BufWriteCmd call s:GPGFinishOptionsBuffer() + autocmd BufUnload exe 'au! GPGOptions * ') .'>' augroup END " put some comments to the scratch buffer