Skip to content

Commit

Permalink
ver Jul10th
Browse files Browse the repository at this point in the history
a fix according to easymotion#484 (comment)
  • Loading branch information
zdy023 committed Jul 10, 2024
1 parent b3cfab2 commit 291df64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autoload/EasyMotion.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,9 @@ function! s:EasyMotion(regexp, direction, visualmode, is_inclusive, ...) " {{{
" FIXME: Hmm... I should use filter()
" keepjumps call cursor(foldclosed(pos[0]), 0)
else
keepjumps call cursor(foldclosedend(pos[0]+1), 0)
if foldclosedend(pos[0]+1) != -1
keepjumps call cursor(foldclosedend(pos[0]+1), 0)
endif
endif
else
call add(targets, pos)
Expand Down

0 comments on commit 291df64

Please sign in to comment.