mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	fix(cmdline): :checkhealth completion with multiple args (#35060)
(cherry picked from commit 5de2ec76a3)
			
			
This commit is contained in:
		 zeertzjq
					zeertzjq
				
			
				
					committed by
					
						![github-actions[bot]](/assets/img/avatar_default.png) github-actions[bot]
						github-actions[bot]
					
				
			
			
				
	
			
			
			![github-actions[bot]](/assets/img/avatar_default.png) github-actions[bot]
						github-actions[bot]
					
				
			
						parent
						
							a05b70baa6
						
					
				
				
					commit
					990b320592
				
			| @@ -2152,7 +2152,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_messages: | ||||
|   | ||||
| @@ -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' }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user