Commit Graph

7 Commits

Author SHA1 Message Date
James McCoy
c8de2bb17c Respect the 'verbose' option
This allows for easier on-the-fly debug (e.g., ":verbose w") and also
makes it easy to leverage 'verbosefile'.

Signed-off-by: James McCoy <jamessan@jamessan.com>
2020-11-07 23:16:20 -05:00
James McCoy
5001a8b45d Do not try to run tty command if it doesn't exist
Signed-off-by: James McCoy <jamessan@jamessan.com>
2019-08-23 19:02:29 -04:00
James McCoy
c2c9720584 Delete all output from "tty" command
Instead of assuming a single line is output, which may be wrong in error
conditions, use the '[/'] marks to delete everything that was read.

Closes jamessan/vim-gnupg#106
Signed-off-by: James McCoy <jamessan@jamessan.com>
2019-08-23 18:57:20 -04:00
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