diff --git a/autoload/tablemode.vim b/autoload/tablemode.vim index 8abde89..ab1cc72 100644 --- a/autoload/tablemode.vim +++ b/autoload/tablemode.vim @@ -113,9 +113,6 @@ function! s:StartExpr() "{{{2 endif endfunction -function! s:HeaderBorderExpr() "{{{2 - return '^\s*' . g:table_mode_corner . '[' . g:table_mode_fillchar . g:table_mode_corner . ']*' . g:table_mode_corner . '$' -endfunction function! s:EndExpr() "{{{2 let cend = s:GetCommentEnd() @@ -126,6 +123,10 @@ function! s:EndExpr() "{{{2 endif endfunction +function! s:HeaderBorderExpr() "{{{2 + return s:StartExpr() . g:table_mode_corner . '[' . g:table_mode_fillchar . g:table_mode_corner . ']*' . g:table_mode_corner . s:EndExpr() +endfunction + function! s:StartCommentExpr() "{{{2 let cstartexpr = s:GetCommentStart() if s:Strlen(cstartexpr) > 0