summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-07-20 19:35:34 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-07-20 19:35:34 +0000
commit43fc0b4a39d56808ae80980b1735a1ac763fae08 (patch)
tree4f7f0655906ef8e4e4075c16fe646a4414924332
parent52f523e62db350988c0b548670d158c9b0779f9e (diff)
Now that #P could be in the status line, flag it for redraw when the active
pane changes.
-rw-r--r--usr.bin/tmux/cmd-down-pane.c3
-rw-r--r--usr.bin/tmux/cmd-select-pane.c3
-rw-r--r--usr.bin/tmux/cmd-up-pane.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-down-pane.c b/usr.bin/tmux/cmd-down-pane.c
index b9b4b24eae0..feec23a3521 100644
--- a/usr.bin/tmux/cmd-down-pane.c
+++ b/usr.bin/tmux/cmd-down-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-down-pane.c,v 1.4 2009/07/19 13:21:40 nicm Exp $ */
+/* $OpenBSD: cmd-down-pane.c,v 1.5 2009/07/20 19:35:33 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -55,6 +55,7 @@ cmd_down_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
if (w->active == NULL)
w->active = TAILQ_FIRST(&w->panes);
} while (!window_pane_visible(w->active));
+ server_status_window(wl->window);
return (0);
}
diff --git a/usr.bin/tmux/cmd-select-pane.c b/usr.bin/tmux/cmd-select-pane.c
index 463802f2806..725d3bd4286 100644
--- a/usr.bin/tmux/cmd-select-pane.c
+++ b/usr.bin/tmux/cmd-select-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-select-pane.c,v 1.4 2009/07/19 13:21:40 nicm Exp $ */
+/* $OpenBSD: cmd-select-pane.c,v 1.5 2009/07/20 19:35:33 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -63,6 +63,7 @@ cmd_select_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
return (-1);
}
window_set_active_pane(wl->window, wp);
+ server_status_window(wl->window);
return (0);
}
diff --git a/usr.bin/tmux/cmd-up-pane.c b/usr.bin/tmux/cmd-up-pane.c
index 7c3c06a0cac..86419b9933f 100644
--- a/usr.bin/tmux/cmd-up-pane.c
+++ b/usr.bin/tmux/cmd-up-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-up-pane.c,v 1.4 2009/07/19 13:21:40 nicm Exp $ */
+/* $OpenBSD: cmd-up-pane.c,v 1.5 2009/07/20 19:35:33 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -55,6 +55,7 @@ cmd_up_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
if (w->active == NULL)
w->active = TAILQ_LAST(&w->panes, window_panes);
} while (!window_pane_visible(w->active));
+ server_status_window(wl->window);
return (0);
}