Add and fix some comment
This commit is contained in:
parent
f8078d6939
commit
cc4c084597
@ -514,10 +514,10 @@ endfunction "}}}
|
|||||||
let group_key = a:0 == 1 ? a:1 : ''
|
let group_key = a:0 == 1 ? a:1 : ''
|
||||||
|
|
||||||
for [key, item] in items(a:groups)
|
for [key, item] in items(a:groups)
|
||||||
let key = group_key . key "( ! empty(group_key) ? group_key : key)
|
let key = group_key . key
|
||||||
"let key = ( ! empty(group_key) ? group_key : key)
|
"let key = ( ! empty(group_key) ? group_key : key)
|
||||||
|
|
||||||
if type(item) == 3
|
if type(item) == 3 " List
|
||||||
" Destination coords
|
" Destination coords
|
||||||
|
|
||||||
" The key needs to be zero-padded in order to
|
" The key needs to be zero-padded in order to
|
||||||
@ -582,11 +582,7 @@ endfunction "}}}
|
|||||||
|
|
||||||
" Solve multibyte issues by matching the byte column
|
" Solve multibyte issues by matching the byte column
|
||||||
" number instead of the visual column
|
" number instead of the visual column
|
||||||
"echom lines[line_num]['mb_compensation']
|
|
||||||
let col_num -= lines[line_num]['mb_compensation']
|
let col_num -= lines[line_num]['mb_compensation']
|
||||||
"if col_num < 0
|
|
||||||
" let col_num = 0
|
|
||||||
"endif
|
|
||||||
|
|
||||||
" Compensate for byte difference between marker
|
" Compensate for byte difference between marker
|
||||||
" character and target character
|
" character and target character
|
||||||
@ -670,7 +666,7 @@ endfunction "}}}
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Add marker/target lenght difference for multibyte
|
" Add marker/target length difference for multibyte
|
||||||
" compensation
|
" compensation
|
||||||
let lines[line_num]['mb_compensation'] += (target_line_byte_len - strlen(lines[line_num]['marker']) )
|
let lines[line_num]['mb_compensation'] += (target_line_byte_len - strlen(lines[line_num]['marker']) )
|
||||||
endfor
|
endfor
|
||||||
@ -951,6 +947,7 @@ endfunction "}}}
|
|||||||
" This mode requires that we eat one more
|
" This mode requires that we eat one more
|
||||||
" character to the right if we're using
|
" character to the right if we're using
|
||||||
" a forward motion
|
" a forward motion
|
||||||
|
" TODO: support if a:direction == 2
|
||||||
if a:direction != 1
|
if a:direction != 1
|
||||||
let coords[1] += 1
|
let coords[1] += 1
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user