Don't change modified state of buffer for FileWriteCmd
Signed-off-by: James McCoy <vega.james@gmail.com>
This commit is contained in:
parent
9de82fa38a
commit
3c01375c3b
@ -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')))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user