From e2e53bc315bb0e8077b8b234984f1b1d1b2749e3 Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 18 Oct 2011 22:00:02 -0400 Subject: [PATCH] Resolve the filename when saving to follow symlinks. Signed-off-by: James Vega --- plugin/gnupg.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/gnupg.vim b/plugin/gnupg.vim index 0b6c3f2..f74ea25 100644 --- a/plugin/gnupg.vim +++ b/plugin/gnupg.vim @@ -1,5 +1,5 @@ " Name: gnupg.vim -" Last Change: 2011 Aug 13 +" Last Change: 2011 Oct 18 " Maintainer: James Vega " Original Author: Markus Braun " Summary: Vim plugin for transparent editing of gpg encrypted files. @@ -573,7 +573,7 @@ function s:GPGEncrypt() return endif - call rename(destfile, expand('')) + call rename(destfile, resolve(expand(''))) setl nomodified call s:GPGDebug(3, "<<<<<<<< Leaving s:GPGEncrypt()") endfunction