Skip folded lines
This commit is contained in:
parent
386eb49f23
commit
2ccfe05430
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user