summaryrefslogtreecommitdiffstats
path: root/cmd-unlink-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-unlink-window.c')
-rw-r--r--cmd-unlink-window.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd-unlink-window.c b/cmd-unlink-window.c
index 948d07c9..9ed48104 100644
--- a/cmd-unlink-window.c
+++ b/cmd-unlink-window.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-unlink-window.c,v 1.3 2007-11-13 09:53:47 nicm Exp $ */
+/* $Id: cmd-unlink-window.c,v 1.4 2007-11-16 21:12:31 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -38,8 +38,8 @@ struct cmd_unlink_window_data {
};
const struct cmd_entry cmd_unlink_window_entry = {
- "unlink-window", "unlinkw", "[-i index",
- 0,
+ "unlink-window", "unlinkw", "[-i index]",
+ CMD_NOCLIENT,
cmd_unlink_window_parse,
cmd_unlink_window_exec,
cmd_unlink_window_send,
@@ -128,8 +128,8 @@ cmd_unlink_window_exec(void *ptr, struct cmd_ctx *ctx)
server_redraw_client(c);
}
- if (!(ctx->flags & CMD_KEY))
- server_write_client(ctx->client, MSG_EXIT, NULL, 0);
+ if (ctx->cmdclient != NULL)
+ server_write_client(ctx->cmdclient, MSG_EXIT, NULL, 0);
}
void