Fixes a problem that made vim-gnupg open an emtpy file instead of #12

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

nachoalonso commented Sep 9, 2013

decrypting the existing one if the filename or path contains pairs
of square brackets

vim-gnupg uses glob to check if a file exists but glob expands wildcards (including [ and ]) so, the check returns 'false' even if the file exists if the filename or path is something like [0]-Directory/File.

Using filereadable avoids this problem.

@nachoalonso nachoalonso Fixes a problem that made vim-gnupg open an emtpy file instead of
decrypting the existing one if the filename or path contains pairs
of square brackets
050a19d
Owner

jamessan commented Sep 9, 2013

Looks good. I'll merge it soon.

jamessan closed this in 6e9f52a Sep 10, 2013

@jamessan jamessan modified the milestone: 2.6 Apr 25, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment