mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Do not allow paste into panes which have exited, from Romain Francoise
in GitHub issue 3830.
This commit is contained in:
6
window.c
6
window.c
@ -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)
|
||||
|
Reference in New Issue
Block a user