Fix: #891 Table Pressing <Enter> autosets tw<-0

Issue: Pressing <Enter> in insert mode in table breaks line wrapping #891
This commit is contained in:
Tinmarino
2020-07-21 15:13:58 -04:00
parent 19bfe93ef3
commit dfc5344d0c
2 changed files with 5 additions and 19 deletions

View File

@ -331,7 +331,6 @@ augroup vimwiki
" autowrap tables.
if vimwiki#vars#get_global('table_auto_fmt')
exe 'autocmd InsertLeave '.pat.' call vimwiki#tbl#format(line("."), 2)'
exe 'autocmd InsertEnter '.pat.' call vimwiki#tbl#reset_tw(line("."))'
endif
if vimwiki#vars#get_global('folding') =~? ':quick$'
" from http://vim.wikia.com/wiki/Keep_folds_closed_while_inserting_text