Commit Graph

4 Commits

Author SHA1 Message Date
James McCoy
32360c8f20
Define GPGEdit{Options,Recipients} autocmd in their own group
This allows them to be properly cleared only when the buffer is
re-created/loaded.  This fixes the handling of the autocmds when the
Edit buffer is saved, but not hidden or deleted.

The autocmd remains in place, rather than having an acwrite buffer with
no autocmd set.

Signed-off-by: James McCoy <jamessan@jamessan.com>
2019-02-11 23:23:14 -05:00
James McCoy
d90ae08795
Use a common function to create GPGEdit{Options,Recipients} buffer
Signed-off-by: James McCoy <jamessan@jamessan.com>
2019-02-11 23:06:01 -05:00
James McCoy
db08c3873f
Convert last s:GPGEditRecipients() to gnupg#edit_recipients()
Closes: jamessan/vim-gnupg#98
Signed-off-by: James McCoy <jamessan@jamessan.com>
2019-02-04 09:01:59 -05:00
James McCoy
44372d80cd
Move implementation into autoload/gnupg.vim
Closes: jamessan/vim-gnupg#52
Closes: jamessan/vim-gnupg#66

Signed-off-by: James McCoy <jamessan@jamessan.com>
2019-02-03 23:33:50 -05:00