=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/Attic/cmd-unlink-window.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/tmux/Attic/cmd-unlink-window.c 2009/07/13 23:11:35 1.2 --- src/usr.bin/tmux/Attic/cmd-unlink-window.c 2009/07/15 08:05:56 1.3 *************** *** 1,4 **** ! /* $OpenBSD: cmd-unlink-window.c,v 1.2 2009/07/13 23:11:35 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-unlink-window.c,v 1.3 2009/07/15 08:05:56 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 28,35 **** const struct cmd_entry cmd_unlink_window_entry = { "unlink-window", "unlinkw", ! CMD_TARGET_WINDOW_USAGE, ! 0, 0, cmd_target_init, cmd_target_parse, cmd_unlink_window_exec, --- 28,35 ---- const struct cmd_entry cmd_unlink_window_entry = { "unlink-window", "unlinkw", ! "[-k] " CMD_TARGET_WINDOW_USAGE, ! 0, CMD_CHFLAG('k'), cmd_target_init, cmd_target_parse, cmd_unlink_window_exec, *************** *** 52,58 **** if ((wl = cmd_find_window(ctx, data->target, &s)) == NULL) return (-1); ! if (wl->window->references == 1) { ctx->error(ctx, "window is only linked to one session"); return (-1); } --- 52,58 ---- if ((wl = cmd_find_window(ctx, data->target, &s)) == NULL) return (-1); ! if (!(data->chflags & CMD_CHFLAG('k')) && wl->window->references == 1) { ctx->error(ctx, "window is only linked to one session"); return (-1); }