Add remain-on-exit key to keep pane around until a key is pressed, from

Michael Grant.
This commit is contained in:
nicm
2026-04-04 17:00:33 +00:00
parent 87aaff5fae
commit 7f2ac9c871
4 changed files with 18 additions and 4 deletions

View File

@@ -1359,6 +1359,15 @@ try_again:
}
forward_key:
if (wp != NULL &&
(wp->flags & PANE_EXITED) &&
!KEYC_IS_MOUSE(key) &&
!KEYC_IS_PASTE(key) &&
options_get_number(wp->options, "remain-on-exit") == 3) {
options_set_number(wp->options, "remain-on-exit", 0);
server_destroy_pane(wp, 0);
goto out;
}
if (c->flags & CLIENT_READONLY)
goto out;
if (wp != NULL)