Trigger BufWritePost event via BufWriteCmd/FileWriteCmd

Closes jamessan/vim-gnupg#23
Signed-off-by: James McCoy <vega.james@gmail.com>
This commit is contained in:
Daniel Hahler 2014-12-23 20:00:09 +01:00 committed by James McCoy
parent 20999789f8
commit 28c6e91593

View File

@ -680,6 +680,7 @@ function s:GPGEncrypt()
call rename(destfile, resolve(expand('<afile>'))) call rename(destfile, resolve(expand('<afile>')))
setl nomodified setl nomodified
silent execute ':doautocmd BufWritePost ' . fnameescape(expand('<afile>:r'))
call s:GPGDebug(3, "<<<<<<<< Leaving s:GPGEncrypt()") call s:GPGDebug(3, "<<<<<<<< Leaving s:GPGEncrypt()")
endfunction endfunction