mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-08 11:03:47 -05:00
Merge pull request #135 from idbrii/safer-borders
Only insert borders on blank/whitespace-only lines
This commit is contained in:
@@ -170,7 +170,7 @@ endfunction
|
||||
|
||||
function! tablemode#TableizeInsertMode() "{{{2
|
||||
if tablemode#IsActive()
|
||||
if getline('.') =~# (tablemode#table#StartExpr() . g:table_mode_separator . g:table_mode_separator)
|
||||
if getline('.') =~# (tablemode#table#StartExpr() . g:table_mode_separator . g:table_mode_separator . tablemode#table#EndExpr())
|
||||
call tablemode#table#AddBorder('.')
|
||||
normal! A
|
||||
elseif getline('.') =~# (tablemode#table#StartExpr() . g:table_mode_separator)
|
||||
|
||||
Reference in New Issue
Block a user