version 1.7, 2009/10/10 10:02:48 |
version 1.8, 2009/11/13 19:53:28 |
|
|
const struct cmd_entry cmd_break_pane_entry = { |
const struct cmd_entry cmd_break_pane_entry = { |
"break-pane", "breakp", |
"break-pane", "breakp", |
CMD_TARGET_PANE_USAGE " [-d]", |
CMD_TARGET_PANE_USAGE " [-d]", |
0, CMD_CHFLAG('d'), |
0, "d", |
cmd_target_init, |
cmd_target_init, |
cmd_target_parse, |
cmd_target_parse, |
cmd_break_pane_exec, |
cmd_break_pane_exec, |
|
|
|
|
base_idx = options_get_number(&s->options, "base-index"); |
base_idx = options_get_number(&s->options, "base-index"); |
wl = session_attach(s, w, -1 - base_idx, &cause); /* can't fail */ |
wl = session_attach(s, w, -1 - base_idx, &cause); /* can't fail */ |
if (!(data->chflags & CMD_CHFLAG('d'))) |
if (!cmd_check_flag(data->chflags, 'd')) |
session_select(s, wl->idx); |
session_select(s, wl->idx); |
|
|
server_redraw_session(s); |
server_redraw_session(s); |