mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Use screen_reinit for respawn-pane to keep history and call input_init
for respawn-window to break out of waiting for DCS/OSC to finish.
This commit is contained in:
		@@ -68,10 +68,7 @@ cmd_respawn_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
 | 
				
			|||||||
	server_fill_environ(s, &env);
 | 
						server_fill_environ(s, &env);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	window_pane_reset_mode(wp);
 | 
						window_pane_reset_mode(wp);
 | 
				
			||||||
	screen_free(&wp->base);
 | 
						screen_reinit(&wp->base);
 | 
				
			||||||
	hlimit = options_get_number(&s->options, "history-limit");
 | 
					 | 
				
			||||||
	screen_init(&wp->base, wp->sx, wp->sy, hlimit);
 | 
					 | 
				
			||||||
	wp->screen = &wp->base;
 | 
					 | 
				
			||||||
	input_init(wp);
 | 
						input_init(wp);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (args->argc != 0)
 | 
						if (args->argc != 0)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -87,7 +87,9 @@ cmd_respawn_window_exec(struct cmd *self, struct cmd_ctx *ctx)
 | 
				
			|||||||
		return (-1);
 | 
							return (-1);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	layout_init(w);
 | 
						layout_init(w);
 | 
				
			||||||
 | 
						window_pane_reset_mode(wp);
 | 
				
			||||||
	screen_reinit(&wp->base);
 | 
						screen_reinit(&wp->base);
 | 
				
			||||||
 | 
						input_init(wp);
 | 
				
			||||||
	window_set_active_pane(w, wp);
 | 
						window_set_active_pane(w, wp);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	recalculate_sizes();
 | 
						recalculate_sizes();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user