From 3f6bfbaf2babcc7f08f628a82ff31b0b52014e58 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 12 Mar 2019 11:16:49 +0000 Subject: Allow multiple modes to be open in a pane. A stack of open modes is kept and the previous restored when the top is exited. If a mode that is already on the stack is entered, the existing instance is moved to the top as the active mode rather than being opened new. --- cmd-respawn-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd-respawn-window.c') diff --git a/cmd-respawn-window.c b/cmd-respawn-window.c index a1e26117..68791990 100644 --- a/cmd-respawn-window.c +++ b/cmd-respawn-window.c @@ -99,7 +99,7 @@ cmd_respawn_window_exec(struct cmd *self, struct cmdq_item *item) free(cwd); layout_init(w, wp); - window_pane_reset_mode(wp); + window_pane_reset_mode_all(wp); screen_reinit(&wp->base); input_init(wp); window_set_active_pane(w, wp); -- cgit v1.2.3