From 979e04a6ecef8b05d66355532d7826b71c3f1ca6 Mon Sep 17 00:00:00 2001 From: Shayne Holmes Date: Tue, 9 Apr 2019 11:48:01 -0700 Subject: [PATCH] Search for wordcount formatters with extension Autoload expects the autoload scripts to have the '.vim' extension. Fixes #1986. --- autoload/airline/extensions/wordcount.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions/wordcount.vim b/autoload/airline/extensions/wordcount.vim index 07eed92..a8174f7 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'