break-pane command to split a pane off into a new window; bound to ! by default.

This commit is contained in:
Nicholas Marriott
2009-03-07 09:29:54 +00:00
parent 8a6a7e74da
commit 56f80a5b09
10 changed files with 124 additions and 14 deletions

View File

@ -1,4 +1,4 @@
/* $Id: cmd-kill-pane.c,v 1.3 2009-01-19 18:23:40 nicm Exp $ */
/* $Id: cmd-kill-pane.c,v 1.4 2009-03-07 09:29:54 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@ -64,8 +64,8 @@ cmd_kill_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
ctx->error(ctx, "can't kill pane: %d", data->pane);
return (-1);
}
window_remove_pane(wl->window, wp);
server_redraw_window(wl->window);
return (0);
}