1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-12 17:55:41 +08:00

Clear cmd line after SPC s c

This commit is contained in:
wsdjeg 2019-09-25 11:06:30 +08:00
parent 4ee372f2a3
commit 4607151b5b

View File

@ -84,9 +84,9 @@ function! SpaceVim#plugins#searcher#count() abort
return ' ' . len(s:rst) . ' items '
endif
endfunction
nnoremap <silent> <Plug>(nohlsearch) :nohlsearch<Cr>
function! SpaceVim#plugins#searcher#clear()
call feedkeys(":nohlsearch\<cr>")
call feedkeys("\<Plug>(nohlsearch)")
let s:rst = []
call setqflist([])
let &l:statusline = SpaceVim#layers#core#statusline#get(1)