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)
|
let pos = searchpos(a:regexp, search_direction, search_stopline)
|
||||||
|
|
||||||
|
" Reached end of search range
|
||||||
if pos == [0, 0]
|
if pos == [0, 0]
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Skip folded lines
|
||||||
|
if foldclosed(pos[0]) != -1
|
||||||
|
continue
|
||||||
|
endif
|
||||||
|
|
||||||
call add(targets, pos)
|
call add(targets, pos)
|
||||||
endwhile
|
endwhile
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user