Skip to content

Commit

Permalink
Use augroup and au! around autocmd setup
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed authored and aaronbieber committed Feb 4, 2014
1 parent ea4aad2 commit 609252d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ftplugin/quicktask.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,10 @@ endif
" ============================================================================
" Autocommands {{{1
if g:quicktask_autosave
autocmd BufLeave,FocusLost * call <SID>SaveOnFocusLost()
augroup quicktask
au!
autocmd BufLeave,FocusLost * call <SID>SaveOnFocusLost()
augroup END
endif

" ============================================================================
Expand Down

0 comments on commit 609252d

Please sign in to comment.