mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 02:50:03 +08:00
Fix search_index after :noh
Thanks: markzen: keeppa %s,pattern,,gn Patch 7.4.083
This commit is contained in:
parent
e264a17d98
commit
16b5e83537
@ -78,11 +78,11 @@ endfunction
|
||||
function! s:search_status() abort
|
||||
let ct = 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)
|
||||
let ct = split(ctl[0])[0]
|
||||
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)
|
||||
let tt = split(ttl[0])[0]
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user