diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-13 06:50:10 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-13 06:50:10 +0000 |
commit | f85559144fbc4a58ce4f513b2217852bc959a8b6 (patch) | |
tree | 1a8442c666152328fd4fe611964520924ca42435 /cmd-respawn-window.c | |
parent | 98c85cf989a951c28e536e10de147b3263d934ce (diff) | |
download | rtmux-f85559144fbc4a58ce4f513b2217852bc959a8b6.tar.gz rtmux-f85559144fbc4a58ce4f513b2217852bc959a8b6.tar.bz2 rtmux-f85559144fbc4a58ce4f513b2217852bc959a8b6.zip |
kill-pane command.
Diffstat (limited to 'cmd-respawn-window.c')
-rw-r--r-- | cmd-respawn-window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-respawn-window.c b/cmd-respawn-window.c index 4a157e20..a50eadd0 100644 --- a/cmd-respawn-window.c +++ b/cmd-respawn-window.c @@ -1,4 +1,4 @@ -/* $Id: cmd-respawn-window.c,v 1.8 2009-01-12 18:22:47 nicm Exp $ */ +/* $Id: cmd-respawn-window.c,v 1.9 2009-01-13 06:50:10 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -68,7 +68,7 @@ cmd_respawn_window_exec(struct cmd *self, struct cmd_ctx *ctx) env[0] = buf; if (w->panes[1] != NULL) - window_remove_pane(w, 1); + window_remove_pane(w, w->panes[1]); if (window_pane_spawn(w->panes[0], data->arg, NULL, env) != 0) { ctx->error(ctx, "respawn failed: %s:%d", s->name, wl->idx); |