Closed emilsenan closed 7 years ago
This changeset introduces a bug: When opening test.gpg and using :GPGEditRecipients, vim opens one new (empty!) buffer named "GPGRecipients_test.gpg" and a second new buffer named "GPGRecipients_GPGRecipients_test.gpg" which contains the recipient list.
Edit: And the text in GPGRecipients_GPGRecipients_test.gpg is:
GPG: Please edit the list of recipients, one recipient per line.
GPG: Unknown recipients have a prepended "!".
GPG: Lines beginning with "GPG:" are removed automatically.
GPG: Data after recipients between and including "(" and ")" is ignored.
GPG: Closing this buffer commits changes.
GPG: ----------------------------------------------------------------------
GPG: ----------------------------------------------------------------------
GPG: Please edit the list of recipients, one recipient per line.
GPG: Unknown recipients have a prepended "!".
GPG: Lines beginning with "GPG:" are removed automatically.
GPG: Data after recipients between and including "(" and ")" is ignored.
GPG: Closing this buffer commits changes.
GPG: ----------------------------------------------------------------------
Test <test@example.com> (ID: 0x1122334455667788 created at Wed 07 Dec 2016 4:00:00 PM CET)
Hmm, I tested that exact scenario. Can you open a new issue about this and I'll look into it when I have access to my gpg setup?
Filed as issue #75 with some further testing.
Steps to reproduce:
let g:GPGFilePattern = '*.\(txt\)'
to .vimrcResult: edit recipients buffer is not shown.
I think reason is that GPGFilePattern variable is not used everywhere, there are still places in plugin code where hardcoded
*.\(gpg\|asc\|pgp\)
is used instead of GPGFilePattern.