Skip to content

Commit

Permalink
Don't update makeprg on BufWritePost
Browse files Browse the repository at this point in the history
It's already being ran on BufWritePre, so don't do it twice
  • Loading branch information
kchmck committed Dec 18, 2013
1 parent 4df54e1 commit 18c6852
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/coffee.vim
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ augroup CoffeeUpdateMakePrg

" Set autocmd locally if compiler was set locally.
if &l:makeprg =~ s:pat
autocmd BufWritePre,BufFilePost,BufWritePost <buffer> call s:UpdateMakePrg()
autocmd BufWritePre,BufFilePost <buffer> call s:UpdateMakePrg()
else
autocmd BufWritePre,BufFilePost,BufWritePost call s:UpdateMakePrg()
autocmd BufWritePre,BufFilePost call s:UpdateMakePrg()
endif
augroup END

0 comments on commit 18c6852

Please sign in to comment.