wordcount: Fix the visual count matching pattern
This commit is contained in:
parent
264c1fefd2
commit
0f6cfcdfc2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user