fix Vim hangs for fold lines fix #235
This commit is contained in:
parent
30e6870ff7
commit
2a2cf14bc7
@ -1263,10 +1263,10 @@ function! s:EasyMotion(regexp, direction, visualmode, is_inclusive, ...) " {{{
|
|||||||
else
|
else
|
||||||
keepjumps call cursor(foldclosedend(pos[0]+1), 0)
|
keepjumps call cursor(foldclosedend(pos[0]+1), 0)
|
||||||
endif
|
endif
|
||||||
continue
|
else
|
||||||
endif "}}}
|
|
||||||
|
|
||||||
call add(targets, pos)
|
call add(targets, pos)
|
||||||
|
endif
|
||||||
|
"}}}
|
||||||
let pos = searchpos(regexp, search_direction, search_stopline)
|
let pos = searchpos(regexp, search_direction, search_stopline)
|
||||||
endwhile
|
endwhile
|
||||||
"}}}
|
"}}}
|
||||||
@ -1301,8 +1301,7 @@ function! s:EasyMotion(regexp, direction, visualmode, is_inclusive, ...) " {{{
|
|||||||
|
|
||||||
" Skip folded lines {{{
|
" Skip folded lines {{{
|
||||||
if EasyMotion#helper#is_folded(pos[0])
|
if EasyMotion#helper#is_folded(pos[0])
|
||||||
" Always forward
|
" keepjumps call cursor(foldclosedend(pos[0]+1), 0)
|
||||||
keepjumps call cursor(foldclosedend(pos[0]+1), 0)
|
|
||||||
continue
|
continue
|
||||||
endif
|
endif
|
||||||
"}}}
|
"}}}
|
||||||
|
Loading…
Reference in New Issue
Block a user