mirror of
https://github.com/Ascyii/vim-gnupg.git
synced 2026-01-01 14:24:25 -05:00
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:
committed by
James McCoy
parent
20999789f8
commit
28c6e91593
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user