1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:40:05 +08:00

Fix search_index after :noh

Thanks:
markzen: keeppa %s,pattern,,gn Patch 7.4.083
This commit is contained in:
wsdjeg 2017-06-27 16:47:43 +08:00
parent e264a17d98
commit 16b5e83537

View File

@ -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