Skip to content

Commit

Permalink
Sync OpenBSD patchset 603:
Browse files Browse the repository at this point in the history
Fix this properly.
  • Loading branch information
Tiago Cunha committed Jan 8, 2010
1 parent 4a6191c commit f5dd79a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions layout-string.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $Id: layout-string.c,v 1.2 2010-01-08 16:25:50 tcunha Exp $ */
/* $Id: layout-string.c,v 1.3 2010-01-08 16:28:04 tcunha Exp $ */

/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f5dd79a

Please sign in to comment.