Skip to content

Commit

Permalink
Don't change modified state of buffer for FileWriteCmd
Browse files Browse the repository at this point in the history
Signed-off-by: James McCoy <vega.james@gmail.com>
  • Loading branch information
jamessan committed Dec 25, 2014
1 parent 9de82fa commit 3c01375
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin/gnupg.vim
Expand Up @@ -675,7 +675,10 @@ function s:GPGEncrypt()
endif

call rename(destfile, resolve(expand('<afile>')))
setl nomodified
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')))

Expand Down

0 comments on commit 3c01375

Please sign in to comment.