[fix] searchcount's extension

This commit is contained in:
kazukazuinaina 2020-07-21 14:08:21 +09:00
parent 7fc51f6952
commit 13a92b1474
2 changed files with 4 additions and 1 deletions

View File

@ -439,7 +439,7 @@ function! airline#extensions#load()
call add(s:loaded_ext, 'cursormode')
endif
if get(g:, 'airline#extensions#searchcount#enabled', 1) && exists('*searchcount')
if get(g:, 'airline#extensions#searchcount#enabled', 1)
call airline#extensions#searchcount#init(s:ext)
call add(s:loaded_ext, 'searchcount')
endif

View File

@ -4,6 +4,9 @@
scriptencoding utf-8
if !exists('*searchcount')
finish
endif
function! airline#extensions#searchcount#init(ext) abort
call a:ext.add_statusline_func('airline#extensions#searchcount#apply')