mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-02-19 03:02:45 +08:00
[fix] CI's error
This commit is contained in:
parent
13a92b1474
commit
19fdf61efe
|
@ -439,7 +439,7 @@ function! airline#extensions#load()
|
|||
call add(s:loaded_ext, 'cursormode')
|
||||
endif
|
||||
|
||||
if get(g:, 'airline#extensions#searchcount#enabled', 1)
|
||||
if get(g:, 'airline#extensions#searchcount#enabled', 1) && exists('*searchcount')
|
||||
call airline#extensions#searchcount#init(s:ext)
|
||||
call add(s:loaded_ext, 'searchcount')
|
||||
endif
|
||||
|
|
|
@ -13,7 +13,7 @@ function! airline#extensions#searchcount#init(ext) abort
|
|||
endfunction
|
||||
|
||||
function! airline#extensions#searchcount#apply(...) abort
|
||||
call airline#extensions#append_to_section('y',
|
||||
call airline#extensions#append_to_section('y',
|
||||
\ '%{v:hlsearch ? airline#extensions#searchcount#status() : ""}')
|
||||
endfunction
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user