@@ -69,52 +69,52 @@ function! s:to_cursor.failure_message_for_should(actual, expected)
6969 Expect a: actual [1 ] > 0
7070 Expect a: expected [1 ] > 0
7171
72- let l: line1 = getline (a: actual [0 ])
73- let l: line2 = getline (a: expected [0 ])
72+ let line1 = getline (a: actual [0 ])
73+ let line2 = getline (a: expected [0 ])
7474 " Change char on cursor to '█'.
75- let l: line1 = strpart (l: line1 , 0 , a: actual [1 ]-1 )
75+ let line1 = strpart (l: line1 , 0 , a: actual [1 ]-1 )
7676 \ . ' █'
7777 \ . strpart (l: line1 , a: actual [1 ])
7878 let line2 = strpart (l: line2 , 0 , a: expected [1 ]-1 )
7979 \ . ' █'
8080 \ . strpart (l: line2 , a: expected [1 ])
8181 " Separation of both cases with \n would be nice, but
8282 " vim-vspec allow oneliners as return string, only.
83- let l: msg = ' Line ' . string (a: actual [0 ]) . " : '" . l: line1
83+ let msg = ' Line ' . string (a: actual [0 ]) . " : '" . l: line1
8484 \ . " ',\x09\x09 Line " . string (a: expected [0 ]) . " : '" . l: line2 . " '\x0a "
8585 return l: msg
8686endfunction
8787
8888function ! CompareMovements (movement1, movement2, backward)
89- let l: jumpmarks = [
89+ let jumpmarks = [
9090 \ [a: movement1 , []],
9191 \ [a: movement2 , []],
9292 \ ]
9393
9494 " Loop through current buffer in both variants {{
9595 for [l: handler , l: list ] in l: jumpmarks
9696 if a: backward == 1
97- let l: last_line = line (' $' )
98- let l: last_char = len (getline (l: last_line ))
97+ let last_line = line (' $' )
98+ let last_char = len (getline (l: last_line ))
9999 call cursor (l: last_line , l: last_char )
100100 else
101101 call cursor ([1 ,1 ])
102102 endif
103103
104- let l: lastpos = [0 ,0 ]
104+ let lastpos = [0 ,0 ]
105105
106106 " Centralize line. Otherwise, Easymotion functions aborts
107107 " at the end of the (virtual) window.
108108 call TryNormal (' zz' )
109109 call TryNormal (l: handler )
110- let l: curpos = getpos (" ." )[1 :2 ]
110+ let curpos = getpos (" ." )[1 :2 ]
111111
112112 while l: lastpos != l: curpos
113- let l: list += [l: curpos ]
114- let l: lastpos = l: curpos
113+ let list += [l: curpos ]
114+ let lastpos = l: curpos
115115 call TryNormal (' zz' )
116116 call TryNormal (l: handler )
117- let l: curpos = getpos (" ." )[1 :2 ]
117+ let curpos = getpos (" ." )[1 :2 ]
118118 " Abort after a fixed number of steps.
119119 if len (l: list ) > s: maximal_number_of_compared_movments
120120 break
@@ -131,11 +131,11 @@ function! CompareMovements(movement1, movement2, backward)
131131 endif
132132
133133 " Search for first unmatching position. {{
134- let l: index = 0
135- let l: len = min ([len (l: cursor_positions2 ), len (l: cursor_positions1 )])
134+ let index = 0
135+ let len = min ([len (l: cursor_positions2 ), len (l: cursor_positions1 )])
136136 while l: index < l: len
137137 Expect l: cursor_positions2 [l: index ] to_cursor l: cursor_positions1 [l: index ]
138- let l: index += 1
138+ let index += 1
139139 endwhile
140140
141141 " Collision with begin or end of file or while loop aborts to early.
0 commit comments