Improve handling of g:table_mode_ignore_align

This commit is contained in:
Dhruva Sagar
2022-03-01 13:12:54 +05:30
parent 494d95d2b3
commit 698ff3074c
4 changed files with 7 additions and 3 deletions

View File

@@ -115,7 +115,7 @@ function! tablemode#align#Align(lines) "{{{2
endfor
endfor
if g:table_mode_ignore_align ==# 1
if tablemode#utils#get_buffer_or_global_option('table_mode_ignore_align') ==# 1
let alignments = []
else
let alignments = tablemode#align#alignments(lines[0].lnum, len(lines[0].text))