From 18c68524ab8a043a566bbe227ea8f81ab922d092 Mon Sep 17 00:00:00 2001 From: Mick Koch Date: Wed, 18 Dec 2013 14:22:04 -0500 Subject: [PATCH] Don't update makeprg on BufWritePost It's already being ran on BufWritePre, so don't do it twice --- compiler/coffee.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/coffee.vim b/compiler/coffee.vim index 5c8ed29..9a91d35 100644 --- a/compiler/coffee.vim +++ b/compiler/coffee.vim @@ -75,8 +75,8 @@ augroup CoffeeUpdateMakePrg " Set autocmd locally if compiler was set locally. if &l:makeprg =~ s:pat - autocmd BufWritePre,BufFilePost,BufWritePost call s:UpdateMakePrg() + autocmd BufWritePre,BufFilePost call s:UpdateMakePrg() else - autocmd BufWritePre,BufFilePost,BufWritePost call s:UpdateMakePrg() + autocmd BufWritePre,BufFilePost call s:UpdateMakePrg() endif augroup END