summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2024-02-13 10:01:10 +0000
committerThomas Adam <thomas@xteddy.org>2024-02-13 10:01:10 +0000
commit0960862950476a5a519905487d731a8b843d07c2 (patch)
tree72b24ad259c3e0c78f1cf166b35b60e718240eab /window.c
parent44ad25b3673cf9fddc92ed122e51cd9beb50d4f7 (diff)
parent40b97b1715182b0ab0274b0c402b34e2cba98f04 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'window.c')
-rw-r--r--window.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/window.c b/window.c
index 81d0f809..77ce41d8 100644
--- a/window.c
+++ b/window.c
@@ -1214,6 +1214,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)