mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-15 14:33:48 -05:00
Fix column modifications if Unicode is involved
This commit is contained in:
@@ -46,13 +46,13 @@ endfunction
|
||||
|
||||
function! tablemode#spreadsheet#MoveToFirstRow() "{{{2
|
||||
if tablemode#table#IsRow('.')
|
||||
call cursor(tablemode#spreadsheet#GetFirstRow('.'), col('.'))
|
||||
call tablemode#utils#MoveToLine(tablemode#spreadsheet#GetFirstRow('.'))
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! tablemode#spreadsheet#MoveToFirstRowOrHeader() "{{{2
|
||||
if tablemode#table#IsRow('.')
|
||||
call cursor(tablemode#spreadsheet#GetFirstRowOrHeader('.'), col('.'))
|
||||
call tablemode#utils#MoveToLine(tablemode#spreadsheet#GetFirstRowOrHeader('.'))
|
||||
endif
|
||||
endfunction
|
||||
|
||||
@@ -71,7 +71,7 @@ endfunction
|
||||
|
||||
function! tablemode#spreadsheet#MoveToLastRow() "{{{2
|
||||
if tablemode#table#IsRow('.')
|
||||
call cursor(tablemode#spreadsheet#GetLastRow('.'), col('.'))
|
||||
call tablemode#utils#MoveToLine(tablemode#spreadsheet#GetLastRow('.'))
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user