From 727a2b48d9ce8296ae4cc9c2533bcb8747b60c06 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Sun, 26 Feb 2017 10:24:08 +0100 Subject: [PATCH] Rename wordcount update function --- autoload/airline/extensions/wordcount.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/airline/extensions/wordcount.vim b/autoload/airline/extensions/wordcount.vim index e424f5e3..6df75d9b 100644 --- a/autoload/airline/extensions/wordcount.vim +++ b/autoload/airline/extensions/wordcount.vim @@ -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