Merge branch 'fnameescape'
This commit is contained in:
commit
b54fd4c18a
@ -1,5 +1,5 @@
|
|||||||
" Name: gnupg.vim
|
" Name: gnupg.vim
|
||||||
" Last Change: 2017 Oct 22
|
" Last Change: 2017 Dec 15
|
||||||
" Maintainer: James McCoy <jamessan@jamessan.com>
|
" Maintainer: James McCoy <jamessan@jamessan.com>
|
||||||
" Original Author: Markus Braun <markus.braun@krawel.de>
|
" Original Author: Markus Braun <markus.braun@krawel.de>
|
||||||
" Summary: Vim plugin for transparent editing of gpg encrypted files.
|
" Summary: Vim plugin for transparent editing of gpg encrypted files.
|
||||||
@ -482,7 +482,7 @@ function s:GPGDecrypt(bufread)
|
|||||||
" Remove the buffer name ...
|
" Remove the buffer name ...
|
||||||
silent 0file
|
silent 0file
|
||||||
" ... so we can force it to be absolute
|
" ... so we can force it to be absolute
|
||||||
exe 'silent file' filename
|
exe 'silent file' fnameescape(filename)
|
||||||
|
|
||||||
" This is a new file, so force the user to edit the recipient list if
|
" This is a new file, so force the user to edit the recipient list if
|
||||||
" they open a new file and public keys are preferred
|
" they open a new file and public keys are preferred
|
||||||
@ -612,7 +612,7 @@ function s:GPGDecrypt(bufread)
|
|||||||
" Always set the buffer name to the absolute path, otherwise Vim won't
|
" Always set the buffer name to the absolute path, otherwise Vim won't
|
||||||
" track the correct buffer name when changing directories (due to
|
" track the correct buffer name when changing directories (due to
|
||||||
" buftype=acwrite).
|
" buftype=acwrite).
|
||||||
exe 'file' filename
|
exe 'file' fnameescape(filename)
|
||||||
else
|
else
|
||||||
execute silent 'read' fnameescape(filename)
|
execute silent 'read' fnameescape(filename)
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user