jamessan / vim-gnupg

This script implements transparent editing of gpg encrypted files.
http://www.vim.org/scripts/script.php?script_id=3645
729 stars 73 forks source link

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

Closed rexroni closed 7 years ago

rexroni commented 7 years ago

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 commented 7 years ago

Thanks for reporting this! It should be fixed now.

rexroni commented 7 years ago

Thanks, that was fast!

claes commented 6 years ago

I think this defect motivates a new release.

jamessan commented 6 years ago

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