mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 22:43:58 +00:00
Next/last/previous window, some other tweaks.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $Id: cmd-new-window.c,v 1.1 2007-10-03 23:32:26 nicm Exp $ */
|
||||
/* $Id: cmd-new-window.c,v 1.2 2007-10-04 00:02:10 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -120,15 +120,15 @@ cmd_new_window_exec(void *ptr, struct cmd_ctx *ctx)
|
||||
ctx->error(ctx, "command failed: %s", cmd);
|
||||
return;
|
||||
}
|
||||
if (!data->flag_detached)
|
||||
if (!data->flag_detached) {
|
||||
session_select(s, i);
|
||||
|
||||
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
|
||||
c = ARRAY_ITEM(&clients, i);
|
||||
if (c != NULL && c->session == s) {
|
||||
if (!data->flag_detached)
|
||||
server_draw_client(c);
|
||||
server_draw_status(c);
|
||||
server_redraw_session(s);
|
||||
} else {
|
||||
/* XXX */
|
||||
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
|
||||
c = ARRAY_ITEM(&clients, i);
|
||||
if (c != NULL && c->session == s)
|
||||
server_redraw_status(c);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user