mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Pass -1 for cwd now not NULL.
This commit is contained in:
		@@ -77,7 +77,7 @@ cmd_respawn_pane_exec(struct cmd *self, struct cmd_q *cmdq)
 | 
			
		||||
		cmd = args->argv[0];
 | 
			
		||||
	else
 | 
			
		||||
		cmd = NULL;
 | 
			
		||||
	if (window_pane_spawn(wp, cmd, NULL, NULL, &env, s->tio, &cause) != 0) {
 | 
			
		||||
	if (window_pane_spawn(wp, cmd, NULL, -1, &env, s->tio, &cause) != 0) {
 | 
			
		||||
		cmdq_error(cmdq, "respawn pane failed: %s", cause);
 | 
			
		||||
		free(cause);
 | 
			
		||||
		environ_free(&env);
 | 
			
		||||
 
 | 
			
		||||
@@ -79,7 +79,7 @@ cmd_respawn_window_exec(struct cmd *self, struct cmd_q *cmdq)
 | 
			
		||||
		cmd = args->argv[0];
 | 
			
		||||
	else
 | 
			
		||||
		cmd = NULL;
 | 
			
		||||
	if (window_pane_spawn(wp, cmd, NULL, NULL, &env, s->tio, &cause) != 0) {
 | 
			
		||||
	if (window_pane_spawn(wp, cmd, NULL, -1, &env, s->tio, &cause) != 0) {
 | 
			
		||||
		cmdq_error(cmdq, "respawn window failed: %s", cause);
 | 
			
		||||
		free(cause);
 | 
			
		||||
		environ_free(&env);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user