mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 20:24:27 +08:00
wordcount: Fix the visual count matching pattern
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user