diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-12-19 22:35:54 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-12-19 22:35:54 +0000 |
commit | c65d4220f019b8022ae0192d4a9014be5cc08f40 (patch) | |
tree | 4a48c8d94a621a06dc6811f0116574682befc7df | |
parent | c198664d151f51575ebf7f445f5f26d61e1b67a2 (diff) | |
download | rtmux-c65d4220f019b8022ae0192d4a9014be5cc08f40.tar.gz rtmux-c65d4220f019b8022ae0192d4a9014be5cc08f40.tar.bz2 rtmux-c65d4220f019b8022ae0192d4a9014be5cc08f40.zip |
Don't nuke the index counter when a session group comes up.
-rw-r--r-- | cmd-choose-session.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd-choose-session.c b/cmd-choose-session.c index 23228105..7cd56f5d 100644 --- a/cmd-choose-session.c +++ b/cmd-choose-session.c @@ -55,7 +55,7 @@ cmd_choose_session_exec(struct cmd *self, struct cmd_ctx *ctx) struct winlink *wl; struct session *s; struct session_group *sg; - u_int i, idx, cur; + u_int i, idx, sgidx, cur; char tmp[64]; if (ctx->curclient == NULL) { @@ -82,8 +82,8 @@ cmd_choose_session_exec(struct cmd *self, struct cmd_ctx *ctx) if (sg == NULL) *tmp = '\0'; else { - idx = session_group_index(sg); - xsnprintf(tmp, sizeof tmp, " (group %u)", idx); + sgidx = session_group_index(sg); + xsnprintf(tmp, sizeof tmp, " (group %u)", sgidx); } window_choose_add(wl->window->active, i, |