=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/Attic/layout-string.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/tmux/Attic/layout-string.c 2010/01/07 20:28:01 1.2 --- src/usr.bin/tmux/Attic/layout-string.c 2010/01/07 20:30:02 1.3 *************** *** 1,4 **** ! /* $Id: layout-string.c,v 1.2 2010/01/07 20:28:01 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott --- 1,4 ---- ! /* $Id: layout-string.c,v 1.3 2010/01/07 20:30:02 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott *************** *** 47,67 **** lc = NULL; if (strcasecmp(s, "top") == 0) ! lc = layout_find_top(lc); else if (strcasecmp(s, "bottom") == 0) ! lc = layout_find_bottom(lc); else if (strcasecmp(s, "left") == 0) ! lc = layout_find_left(lc); else if (strcasecmp(s, "right") == 0) ! lc = layout_find_right(lc); else if (strcasecmp(s, "top-left") == 0) ! lc = layout_find_topleft(lc); else if (strcasecmp(s, "top-right") == 0) ! lc = layout_find_topright(lc); else if (strcasecmp(s, "bottom-left") == 0) ! lc = layout_find_bottomleft(lc); else if (strcasecmp(s, "bottom-right") == 0) ! lc = layout_find_bottomright(lc); if (lc == NULL || lc->type != LAYOUT_WINDOWPANE) return (NULL); --- 47,67 ---- lc = NULL; if (strcasecmp(s, "top") == 0) ! lc = layout_find_top(w->layout_root); else if (strcasecmp(s, "bottom") == 0) ! lc = layout_find_bottom(w->layout_root); else if (strcasecmp(s, "left") == 0) ! lc = layout_find_left(w->layout_root); else if (strcasecmp(s, "right") == 0) ! lc = layout_find_right(w->layout_root); else if (strcasecmp(s, "top-left") == 0) ! lc = layout_find_topleft(w->layout_root); else if (strcasecmp(s, "top-right") == 0) ! lc = layout_find_topright(w->layout_root); else if (strcasecmp(s, "bottom-left") == 0) ! lc = layout_find_bottomleft(w->layout_root); else if (strcasecmp(s, "bottom-right") == 0) ! lc = layout_find_bottomright(w->layout_root); if (lc == NULL || lc->type != LAYOUT_WINDOWPANE) return (NULL);