Resolve the filename when saving to follow symlinks.

Signed-off-by: James Vega <vega.james@gmail.com>
This commit is contained in:
James Vega 2011-10-18 22:00:02 -04:00
parent 21eed8f06b
commit e2e53bc315

View File

@ -1,5 +1,5 @@
" Name: gnupg.vim " Name: gnupg.vim
" Last Change: 2011 Aug 13 " Last Change: 2011 Oct 18
" Maintainer: James Vega <vega.james@gmail.com> " Maintainer: James Vega <vega.james@gmail.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.
@ -573,7 +573,7 @@ function s:GPGEncrypt()
return return
endif endif
call rename(destfile, expand('<afile>')) call rename(destfile, resolve(expand('<afile>')))
setl nomodified setl nomodified
call s:GPGDebug(3, "<<<<<<<< Leaving s:GPGEncrypt()") call s:GPGDebug(3, "<<<<<<<< Leaving s:GPGEncrypt()")
endfunction endfunction