Sync OpenBSD patchset 732:

Custom layouts. list-windows command displays the layout as a string (such as
"bb62,159x48,0,0{79x48,0,0,79x48,80,0}") and it can be applied to another
window (with the same number of panes or fewer) using select-layout.
This commit is contained in:
Tiago Cunha
2010-07-02 02:54:52 +00:00
parent e4573de97b
commit e4703bacb5
7 changed files with 388 additions and 65 deletions

View File

@ -1,4 +1,4 @@
/* $Id: layout-string.c,v 1.3 2010-01-08 16:28:04 tcunha Exp $ */
/* $Id: layout-string.c,v 1.4 2010-07-02 02:54:52 tcunha Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@ -36,7 +36,6 @@ struct layout_cell *layout_find_right(struct layout_cell *);
struct layout_cell *layout_find_topleft(struct layout_cell *);
struct layout_cell *layout_find_topright(struct layout_cell *);
struct layout_cell *layout_find_bottomleft(struct layout_cell *);
struct layout_cell *layout_find_bottomright(struct layout_cell *);
/* Find the cell; returns NULL if string not understood. */
struct layout_cell *