mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	When creating a new session from the command-line where there is an external
terminal, copy the termios(4) special characters and use them for new windows created in the new session. Suggested by Theo.
This commit is contained in:
		@@ -75,7 +75,7 @@ cmd_respawn_window_exec(struct cmd *self, struct cmd_ctx *ctx)
 | 
			
		||||
 	window_destroy_panes(w);
 | 
			
		||||
	TAILQ_INSERT_HEAD(&w->panes, wp, entry);
 | 
			
		||||
	window_pane_resize(wp, w->sx, w->sy);
 | 
			
		||||
	if (window_pane_spawn(wp, data->arg, NULL, &env, &cause) != 0) {
 | 
			
		||||
	if (window_pane_spawn(wp, data->arg, NULL, &env, &s->tio, &cause) != 0) {
 | 
			
		||||
		ctx->error(ctx, "respawn window failed: %s", cause);
 | 
			
		||||
		xfree(cause);
 | 
			
		||||
		environ_free(&env);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user