Rename wordcount update function

This commit is contained in:
Christian Brabandt 2017-02-26 10:24:08 +01:00
parent db01efd508
commit 727a2b48d9
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ let s:formatter = get(g:, 'airline#extensions#wordcount#formatter', 'default')
let g:airline#extensions#wordcount#filetypes = get(g:, 'airline#extensions#wordcount#filetypes',
\ '\vhelp|markdown|rst|org|text|asciidoc|tex|mail')
function! s:update()
function! s:wordcount_update()
if match(&ft, get(g:, 'airline#extensions#wordcount#filetypes')) > -1
let l:mode = mode()
if l:mode ==# 'v' || l:mode ==# 'V' || l:mode ==# 's' || l:mode ==# 'S'
@ -36,5 +36,5 @@ endfunction
function! airline#extensions#wordcount#init(ext)
call a:ext.add_statusline_func('airline#extensions#wordcount#apply')
autocmd BufReadPost,CursorMoved,CursorMovedI * call s:update()
autocmd BufReadPost,CursorMoved,CursorMovedI * call s:wordcount_update()
endfunction