From 43fc0b4a39d56808ae80980b1735a1ac763fae08 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 20 Jul 2009 19:35:34 +0000 Subject: Now that #P could be in the status line, flag it for redraw when the active pane changes. --- usr.bin/tmux/cmd-down-pane.c | 3 ++- usr.bin/tmux/cmd-select-pane.c | 3 ++- usr.bin/tmux/cmd-up-pane.c | 3 ++- 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 @@ -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 @@ -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 @@ -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); } -- cgit v1.2.3