Update of /cvsroot/tmux/tmux
In directory vz-cvs-2.sog:/tmp/cvs-serv17607
Modified Files:
layout-set.c
Log Message:
Sync OpenBSD patchset 867:
Prevent tiled producing a corrupt layout when only one column is needed,
from Karl Ferdinand Ebert.
Index: layout-set.c
===================================================================
RCS file: /cvsroot/tmux/tmux/layout-set.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- layout-set.c 22 Dec 2010 15:23:59 -0000 1.8
+++ layout-set.c 19 Mar 2011 23:31:08 -0000 1.9
@@ -519,7 +519,7 @@
TAILQ_INSERT_TAIL(&lc->cells, lcrow, entry);
/* If only one column, just use the row directly. */
- if (n - (j * columns) == 1) {
+ if (n - (j * columns) == 1 || columns == 1) {
layout_make_leaf(lcrow, wp);
wp = TAILQ_NEXT(wp, entry);
continue;
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs