Don't change modified state of buffer for FileWriteCmd

Signed-off-by: James McCoy <vega.james@gmail.com>
This commit is contained in:
James McCoy 2014-12-25 15:11:52 -05:00
parent 9de82fa38a
commit 3c01375c3b

View File

@ -675,7 +675,10 @@ function s:GPGEncrypt()
endif
call rename(destfile, resolve(expand('<afile>')))
if auType == 'BufWrite'
setl nomodified
endif
silent exe ':doautocmd '. auType .'Post '. fnameescape(expand('<afile>:r'))
call s:GPGDebug(2, 'called '. auType .'Post autocommand for ' . fnameescape(expand('<afile>:r')))