diff --git a/autoload/airline/extensions/wordcount.vim b/autoload/airline/extensions/wordcount.vim index 07eed927..a8174f7f 100644 --- a/autoload/airline/extensions/wordcount.vim +++ b/autoload/airline/extensions/wordcount.vim @@ -41,7 +41,7 @@ endfunction " check user-defined formatter exists with appropriate functions, otherwise " fall back to default if s:formatter !=# 'default' - execute 'runtime! autoload/airline/extensions/wordcount/formatters/'.s:formatter + execute 'runtime! autoload/airline/extensions/wordcount/formatters/'.s:formatter.'.vim' if !exists('*airline#extensions#wordcount#formatters#{s:formatter}#to_string') if !exists('*airline#extensions#wordcount#formatters#{s:formatter}#format') let s:formatter = 'default'