mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 20:24:27 +08:00
wordcount: fix wrong normal mode command
This commit is contained in:
@@ -20,11 +20,11 @@ else
|
||||
let idx = a:visual_mode_active ? 5 : 11
|
||||
|
||||
let save_status = v:statusmsg
|
||||
execute "silent normal! g\<cn-g>"
|
||||
execute "silent normal! g\<c-g>"
|
||||
let stat = v:statusmsg
|
||||
let v:statusmsg = save_status
|
||||
|
||||
let parts = split(stat)
|
||||
let parts = split(substitute(stat, ';', '', 'g'))
|
||||
if len(parts) > idx
|
||||
return parts[idx]
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user