summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-10-12 11:32:28 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-10-12 11:32:28 +0000
commit2ef854ebf8ccecf64dc22e0e5ed23fae053fbb7b (patch)
tree0740761e5977bf278caf08f74ab12344a4e907e9 /usr.bin/tmux/window.c
parentdfb01824fd364377c9e83e39d8901ba4be45ccf2 (diff)
Show exit status and time in the remain-on-exit pane text, mostly from
Timo Boettcher in GitHub issue 1103.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r--usr.bin/tmux/window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index 37e163a3b9a..b5023cb98a2 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.205 2017/08/28 12:36:38 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.206 2017/10/12 11:32:27 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -908,6 +908,7 @@ window_pane_spawn(struct window_pane *wp, int argc, char **argv,
free((void *)wp->cwd);
wp->cwd = xstrdup(cwd);
}
+ wp->flags &= ~(PANE_STATUSREADY|PANE_STATUSDRAWN);
cmd = cmd_stringify_argv(wp->argc, wp->argv);
log_debug("spawn: %s -- %s", wp->shell, cmd);