Skip to content

Commit b6544bd

Browse files
authored
Merge pull request #2 from timsu92/timsu92-fix-error-with-folds
fix: prevent moving cursor inside a fold
2 parents 090de30 + 886dd7f commit b6544bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/EasyMotion.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ function! s:EasyMotion(regexp, direction, visualmode, is_inclusive, ...) " {{{
13031303
if search_direction ==# 'b'
13041304
" FIXME: Hmm... I should use filter()
13051305
" keepjumps call cursor(foldclosed(pos[0]), 0)
1306-
else
1306+
elseif foldclosedend(pos[0]+1) != -1
13071307
keepjumps call cursor(foldclosedend(pos[0]+1), 0)
13081308
endif
13091309
else

0 commit comments

Comments
 (0)