Do not allow paste into panes which have exited, from Romain Francoise

in GitHub issue 3830.
This commit is contained in:
nicm
2024-02-13 08:03:50 +00:00
parent 428f8a9b28
commit 4bdb855020
4 changed files with 13 additions and 1 deletions

View File

@ -1204,6 +1204,12 @@ window_pane_visible(struct window_pane *wp)
return (wp == wp->window->active);
}
int
window_pane_exited(struct window_pane *wp)
{
return (wp->fd == -1 || (wp->flags & PANE_EXITED));
}
u_int
window_pane_search(struct window_pane *wp, const char *term, int regex,
int ignore)