mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Fix command prompt with multiple prompts (add the result onto the list
again as we go along). ok deraadt
This commit is contained in:
		@@ -183,6 +183,7 @@ cmd_command_prompt_callback(struct client *c, void *data, const char *s,
 | 
				
			|||||||
		if (cdata->flags & PROMPT_INCREMENTAL)
 | 
							if (cdata->flags & PROMPT_INCREMENTAL)
 | 
				
			||||||
			goto out;
 | 
								goto out;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							cmd_append_argv(&cdata->argc, &cdata->argv, s);
 | 
				
			||||||
		if (++cdata->current != cdata->count) {
 | 
							if (++cdata->current != cdata->count) {
 | 
				
			||||||
			prompt = &cdata->prompts[cdata->current];
 | 
								prompt = &cdata->prompts[cdata->current];
 | 
				
			||||||
			status_prompt_update(c, prompt->prompt, prompt->input);
 | 
								status_prompt_update(c, prompt->prompt, prompt->input);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user