mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 06:30:03 +08:00
Merge pull request #676 from SpaceVim/search_index
Fix search_index after :noh
This commit is contained in:
commit
5ee5157079
@ -78,11 +78,11 @@ endfunction
|
|||||||
function! s:search_status() abort
|
function! s:search_status() abort
|
||||||
let ct = 0
|
let ct = 0
|
||||||
let tt = 0
|
let tt = 0
|
||||||
let ctl = split(s:VIMCOMP.execute('.,$s/' . @/ . '//gn', 'silent!'), "\n")
|
let ctl = split(s:VIMCOMP.execute('keeppatterns .,$s/' . @/ . '//gn', 'silent!'), "\n")
|
||||||
if !empty(ctl)
|
if !empty(ctl)
|
||||||
let ct = split(ctl[0])[0]
|
let ct = split(ctl[0])[0]
|
||||||
endif
|
endif
|
||||||
let ttl = split(s:VIMCOMP.execute('%s/' . @/ . '//gn', 'silent!'), "\n")
|
let ttl = split(s:VIMCOMP.execute('keeppatterns %s/' . @/ . '//gn', 'silent!'), "\n")
|
||||||
if !empty(ctl)
|
if !empty(ctl)
|
||||||
let tt = split(ttl[0])[0]
|
let tt = split(ttl[0])[0]
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user