handle cases where the augroup has not be defined yet. resolves #492
This commit is contained in:
parent
66d0a47f37
commit
abee990d30
|
@ -62,7 +62,9 @@ endfunction!
|
|||
|
||||
function! airline#extensions#whitespace#toggle()
|
||||
if s:enabled
|
||||
autocmd! airline_whitespace CursorHold,BufWritePost
|
||||
augroup airline_whitespace
|
||||
autocmd!
|
||||
augroup END
|
||||
augroup! airline_whitespace
|
||||
let s:enabled = 0
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue