From 28c6e915936892b9d6f0412c14ff3cec85a6e42d Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 23 Dec 2014 20:00:09 +0100 Subject: [PATCH] Trigger BufWritePost event via BufWriteCmd/FileWriteCmd Closes jamessan/vim-gnupg#23 Signed-off-by: James McCoy --- plugin/gnupg.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/gnupg.vim b/plugin/gnupg.vim index a3b4417..7cd51d7 100644 --- a/plugin/gnupg.vim +++ b/plugin/gnupg.vim @@ -680,6 +680,7 @@ function s:GPGEncrypt() call rename(destfile, resolve(expand(''))) setl nomodified + silent execute ':doautocmd BufWritePost ' . fnameescape(expand(':r')) call s:GPGDebug(3, "<<<<<<<< Leaving s:GPGEncrypt()") endfunction