summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2010-01-07 20:30:03 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2010-01-07 20:30:03 +0000
commit2fc6a460bafbc461710b32fce65ab9a2247d23f9 (patch)
treed4a84f7261cbd307e1cf7705bd8ed3bd47c3ab0d /usr.bin/tmux
parent7938c0a78556df7b2886a762b513def3f1d6fc30 (diff)
Fix this properly.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/layout-string.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.bin/tmux/layout-string.c b/usr.bin/tmux/layout-string.c
index 3c18d22a6aa..9142bb1e16b 100644
--- a/usr.bin/tmux/layout-string.c
+++ b/usr.bin/tmux/layout-string.c
@@ -1,4 +1,4 @@
-/* $Id: layout-string.c,v 1.2 2010/01/07 20:28:01 nicm Exp $ */
+/* $Id: layout-string.c,v 1.3 2010/01/07 20:30:02 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -47,21 +47,21 @@ layout_find_string(struct window *w, const char *s)
lc = NULL;
if (strcasecmp(s, "top") == 0)
- lc = layout_find_top(lc);
+ lc = layout_find_top(w->layout_root);
else if (strcasecmp(s, "bottom") == 0)
- lc = layout_find_bottom(lc);
+ lc = layout_find_bottom(w->layout_root);
else if (strcasecmp(s, "left") == 0)
- lc = layout_find_left(lc);
+ lc = layout_find_left(w->layout_root);
else if (strcasecmp(s, "right") == 0)
- lc = layout_find_right(lc);
+ lc = layout_find_right(w->layout_root);
else if (strcasecmp(s, "top-left") == 0)
- lc = layout_find_topleft(lc);
+ lc = layout_find_topleft(w->layout_root);
else if (strcasecmp(s, "top-right") == 0)
- lc = layout_find_topright(lc);
+ lc = layout_find_topright(w->layout_root);
else if (strcasecmp(s, "bottom-left") == 0)
- lc = layout_find_bottomleft(lc);
+ lc = layout_find_bottomleft(w->layout_root);
else if (strcasecmp(s, "bottom-right") == 0)
- lc = layout_find_bottomright(lc);
+ lc = layout_find_bottomright(w->layout_root);
if (lc == NULL || lc->type != LAYOUT_WINDOWPANE)
return (NULL);