From cc4c084597a0de55495a8c5d8e754c4c0549a9ed Mon Sep 17 00:00:00 2001 From: haya14busa Date: Sat, 21 Dec 2013 01:34:53 +0900 Subject: [PATCH] Add and fix some comment --- autoload/EasyMotion.vim | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/autoload/EasyMotion.vim b/autoload/EasyMotion.vim index 757b5e9..7b0cc7d 100644 --- a/autoload/EasyMotion.vim +++ b/autoload/EasyMotion.vim @@ -514,10 +514,10 @@ endfunction "}}} let group_key = a:0 == 1 ? a:1 : '' 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) - if type(item) == 3 + if type(item) == 3 " List " Destination coords " The key needs to be zero-padded in order to @@ -582,11 +582,7 @@ endfunction "}}} " Solve multibyte issues by matching the byte column " number instead of the visual column - "echom 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 " character and target character @@ -670,7 +666,7 @@ endfunction "}}} endif endif - " Add marker/target lenght difference for multibyte + " Add marker/target length difference for multibyte " compensation let lines[line_num]['mb_compensation'] += (target_line_byte_len - strlen(lines[line_num]['marker']) ) endfor @@ -951,6 +947,7 @@ endfunction "}}} " This mode requires that we eat one more " character to the right if we're using " a forward motion + " TODO: support if a:direction == 2 if a:direction != 1 let coords[1] += 1 endif