wordcount: Fix the visual count matching pattern

This commit is contained in:
Liam Fleming 2018-09-22 13:57:53 +01:00
parent 264c1fefd2
commit 0f6cfcdfc2

View File

@ -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