neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 5de2ec76a3b01030e81b37244281c05469cff895
parent 0a113013fb85866890600570aabc58089dc02daf
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Sat, 26 Jul 2025 07:04:32 +0800

fix(cmdline): :checkhealth completion with multiple args (#35060)


Diffstat:
Msrc/nvim/cmdexpand.c | 1-
Mtest/functional/plugin/health_spec.lua | 8++++++++
2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/nvim/cmdexpand.c b/src/nvim/cmdexpand.c @@ -2295,7 +2295,6 @@ static const char *set_context_by_cmdname(const char *cmd, cmdidx_T cmdidx, expa break; case CMD_checkhealth: xp->xp_context = EXPAND_CHECKHEALTH; - xp->xp_pattern = (char *)arg; break; case CMD_retab: diff --git a/test/functional/plugin/health_spec.lua b/test/functional/plugin/health_spec.lua @@ -67,6 +67,14 @@ describe(':checkhealth', function() assert_alive() end) + it('cmdline completion works with multiple args #35054', function() + clear() + n.feed(':checkhealth vim.ls<Tab>') + eq('checkhealth vim.lsp', fn.getcmdline()) + n.feed(' vim.prov<Tab>') + eq('checkhealth vim.lsp vim.provider', fn.getcmdline()) + end) + it('vim.g.health', function() clear { args_rm = { '-u' },