Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"set autowrite" causes "q!" to write plaintext gpg files to hard drive #77

Closed
rexroni opened this issue Feb 14, 2017 · 4 comments
Closed
Labels

Comments

@rexroni
Copy link

rexroni commented Feb 14, 2017

Pretty much the title says the issue. Steps to reproduce:

add set autowrite to .vimrc
run vim test.gpg, add some text and :wq
cat test.gpg will spit out gibberish
run vim test.gpg, modify some text and :q!
cat test.gpg will spit out your pre-":q!" buffer as plaintext

The writing of plaintext happens for new files as well (if you do :q!)

jamessan added a commit that referenced this issue Feb 15, 2017
This ensures any write of the buffer requires a configured BufWriteCmd
autocmd, providing more safe guards against problems like
#77.

Signed-off-by: James McCoy <jamessan@jamessan.com>
@jamessan
Copy link
Owner

Thanks for reporting this! It should be fixed now.

@jamessan jamessan added the bug label Feb 15, 2017
@rexroni
Copy link
Author

rexroni commented Feb 15, 2017

Thanks, that was fast!

@claes
Copy link

claes commented Jul 1, 2018

I think this defect motivates a new release.

@jamessan
Copy link
Owner

jamessan commented Jul 1, 2018

This wasn't actually present in the last release, but I am overdue for making a new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants