diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-05-22 08:07:55 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-22 08:07:55 +0800 |
| commit | dee602e659b3da167b63d0ae74df940dc7c111b4 (patch) | |
| tree | 818c859d7bb0ae8f71bddb0caf2b6555ef67d9f6 /runtime/syntax/cpp.vim | |
| parent | 2b5d611d6b1767cc7cee124a18767513ac6b0259 (diff) | |
| download | rneovim-dee602e659b3da167b63d0ae74df940dc7c111b4.tar.gz rneovim-dee602e659b3da167b63d0ae74df940dc7c111b4.tar.bz2 rneovim-dee602e659b3da167b63d0ae74df940dc7c111b4.zip | |
vim-patch:9.2.0508: completion: cannot complete user cmd :K with 'ignorecase' (#39944)
Problem: completion: cannot complete user cmd :K with 'ignorecase'
(rendcrx)
Solution: Skip the short-circuit when 'ignorecase' is set
(Yasuhiro Matsumoto)
The set_cmd_index() short-circuit for the :k command treats ":k<X>" as
":k {X}" (mark argument), which makes ":kz<Tab>" never reach the
command-name expansion path. With 'ignorecase' the same prefix on other
letters (":gz<Tab>") completes a user command like :Gz, so the result is
inconsistent. Skip the short-circuit when 'ignorecase' is set; default
behaviour is preserved so the existing :k tests still pass.
fixes: vim/vim#20241
closes: vim/vim#20275
https://github.com/vim/vim/commit/b54e57ee54f0a4e6eac74b071071a9d85326de3a
Co-authored-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Diffstat (limited to 'runtime/syntax/cpp.vim')
0 files changed, 0 insertions, 0 deletions