mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-08 11:03:47 -05:00
AutoAlign only if buffer is already modified. Fix #126
This commit is contained in:
@@ -98,7 +98,8 @@ function! s:ToggleAutoAlign() "{{{2
|
||||
augroup TableModeAutoAlign
|
||||
au!
|
||||
|
||||
autocmd CursorHold <buffer> nested silent! call tablemode#table#Realign('.')
|
||||
autocmd CursorHold <buffer> nested silent! if &modified | call tablemode#table#Realign('.') | endif
|
||||
autocmd CursorHoldI <buffer> nested silent! if &modified | call tablemode#table#Realign('.') | endif
|
||||
augroup END
|
||||
else
|
||||
autocmd! TableModeAutoAlign CursorHold
|
||||
|
||||
Reference in New Issue
Block a user