mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-08 11:03:47 -05:00
Fixed #30
In case there is nothing to align, it was failing with an error, this ensures it exists gracefully in this situation.
This commit is contained in:
@@ -106,6 +106,7 @@ function! tablemode#align#alignments(lnum, ncols) "{{{2
|
||||
endfunction
|
||||
|
||||
function! tablemode#align#Align(lines) "{{{2
|
||||
if empty(a:lines) | return [] | endif
|
||||
let lines = map(a:lines, 'map(v:val, "v:key =~# \"text\" ? tablemode#align#Split(v:val, g:table_mode_separator) : v:val")')
|
||||
|
||||
for line in lines
|
||||
|
||||
Reference in New Issue
Block a user