fix(normal): pass count to 'keywordprg' as arg1 #38965

Problem:
If `'keywordprg'` begins with `:`, `3K` turns the count into an Ex
range. Commands that don't support that then fail. Vim passes the count
as the first arg (see #19436, vim/vim#10745).

Solution:
Pass `[count]` as the first arg for `'keywordprg'`.
This commit is contained in:
Barrett Ruth
2026-04-12 08:44:56 -04:00
committed by GitHub
parent 49086862fc
commit 6e95d1ad13
6 changed files with 14 additions and 13 deletions

View File

@@ -3850,7 +3850,7 @@ vim.go.km = vim.go.keymodel
--- which is now deprecated.)
--- - ":help!" performs `:help!` (DWIM) on the `WORD` at cursor.
--- - If the value starts with ":", it is invoked as an Ex command
--- prefixed with [count].
--- and [count] is passed as the first argument, if present.
--- - If "man" or "man -s", [count] is the manpage section number.
---
--- See `option-backslash` about including spaces and backslashes.