mirror of
https://github.com/neovim/neovim.git
synced 2026-05-02 03:55:00 +00:00
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:
2
runtime/lua/vim/_meta/options.lua
generated
2
runtime/lua/vim/_meta/options.lua
generated
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user