mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Fix run-shell -d with no command, GitHub issue 2885.
This commit is contained in:
		@@ -181,7 +181,13 @@ cmd_run_shell_timer(__unused int fd, __unused short events, void* arg)
 | 
			
		||||
	struct cmd_list			*cmdlist;
 | 
			
		||||
	char				*error;
 | 
			
		||||
 | 
			
		||||
	if (cdata->state == NULL && cmd != NULL) {
 | 
			
		||||
	if (cdata->state == NULL) {
 | 
			
		||||
		if (cmd == NULL) {
 | 
			
		||||
			if (cdata->item != NULL)
 | 
			
		||||
				cmdq_continue(cdata->item);
 | 
			
		||||
			cmd_run_shell_free(cdata);
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
		if (job_run(cmd, 0, NULL, cdata->s, cdata->cwd, NULL,
 | 
			
		||||
		    cmd_run_shell_callback, cmd_run_shell_free, cdata,
 | 
			
		||||
		    cdata->flags, -1, -1) == NULL)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user