From 0f6cfcdfc291ce2023ae95b5e8a48507feb71eb6 Mon Sep 17 00:00:00 2001 From: Liam Fleming Date: Sat, 22 Sep 2018 13:57:53 +0100 Subject: [PATCH] wordcount: Fix the visual count matching pattern --- 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 364c425..3bac63a 100644 --- a/autoload/airline/extensions/wordcount.vim +++ b/autoload/airline/extensions/wordcount.vim @@ -12,7 +12,7 @@ if exists('*wordcount') else " Pull wordcount from the g_ctrl-g stats function! s:get_wordcount(visual_mode_active) let pattern = a:visual_mode_active - \ ? '\d\+\ze Words;' + \ ? 'Lines; \zs\d\+\ze of \d\+ Words;' \ : 'Word \d\+ of \zs\d\+' let save_status = v:statusmsg