mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-12 21:13:47 -05:00
Fix column modifications if Unicode is involved
This commit is contained in:
@@ -51,3 +51,12 @@ endfunction
|
||||
function! tablemode#utils#get_buffer_or_global_option(table_option) "{{{2
|
||||
return get(b:, a:table_option, get(g:, a:table_option))
|
||||
endf
|
||||
|
||||
function tablemode#utils#MoveToLine(line) "{{{2
|
||||
let offset = tablemode#utils#line(a:line) - line('.')
|
||||
if offset > 0
|
||||
execute "normal! ".offset."j"
|
||||
elseif offset < 0
|
||||
execute "normal! ".(-offset)."k"
|
||||
endif
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user