diff --git a/plugin/EasyMotion.vim b/plugin/EasyMotion.vim index b22a691..1c7249d 100644 --- a/plugin/EasyMotion.vim +++ b/plugin/EasyMotion.vim @@ -291,10 +291,16 @@ let pos = searchpos(a:regexp, search_direction, search_stopline) + " Reached end of search range if pos == [0, 0] break endif + " Skip folded lines + if foldclosed(pos[0]) != -1 + continue + endif + call add(targets, pos) endwhile