mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-11 04:23:47 -05:00
Fix #131. Cleanly disable auto align when table mode is disabled.
This commit is contained in:
@@ -102,7 +102,7 @@ function! s:ToggleAutoAlign() "{{{2
|
|||||||
autocmd InsertLeave <buffer> nested silent! if &modified | call tablemode#table#Realign('.') | endif
|
autocmd InsertLeave <buffer> nested silent! if &modified | call tablemode#table#Realign('.') | endif
|
||||||
augroup END
|
augroup END
|
||||||
else
|
else
|
||||||
autocmd! TableModeAutoAlign CursorHold
|
autocmd! TableModeAutoAlign
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user