Fix #131. Cleanly disable auto align when table mode is disabled.

This commit is contained in:
Dhruva Sagar
2018-03-17 08:06:45 +05:30
parent c35fd9b104
commit d0a6405189

View File

@@ -102,7 +102,7 @@ function! s:ToggleAutoAlign() "{{{2
autocmd InsertLeave <buffer> nested silent! if &modified | call tablemode#table#Realign('.') | endif
augroup END
else
autocmd! TableModeAutoAlign CursorHold
autocmd! TableModeAutoAlign
endif
endfunction