summaryrefslogtreecommitdiffstats
path: root/layout-set.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-12-03 22:50:09 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-12-03 22:50:09 +0000
commit15a64b805e46584d37cc6745383709632e287999 (patch)
tree5a55f5006585c9cdde05163251fd99da243575b5 /layout-set.c
parent6c9862662fd2cccdc55be9d447a27b10f33ed8ea (diff)
Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last
time now I've configured emacs to make them displayed in really annoying colours...
Diffstat (limited to 'layout-set.c')
-rw-r--r--layout-set.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/layout-set.c b/layout-set.c
index 8c54a166..2436a0f5 100644
--- a/layout-set.c
+++ b/layout-set.c
@@ -295,7 +295,7 @@ layout_set_main_h(struct window *w)
continue;
}
- /* Add in the columns. */
+ /* Add in the columns. */
layout_make_node(lcrow, LAYOUT_LEFTRIGHT);
for (i = 0; i < columns; i++) {
/* Create and add a pane cell. */
@@ -312,11 +312,11 @@ layout_set_main_h(struct window *w)
/* Adjust the row to fit the full width if necessary. */
if (i == columns)
i--;
- used = ((i + 1) * width) - 1;
- if (w->sx <= used)
- continue;
- lcchild = TAILQ_LAST(&lcrow->cells, layout_cells);
- layout_resize_adjust(lcchild, LAYOUT_LEFTRIGHT, w->sx - used);
+ used = ((i + 1) * width) - 1;
+ if (w->sx <= used)
+ continue;
+ lcchild = TAILQ_LAST(&lcrow->cells, layout_cells);
+ layout_resize_adjust(lcchild, LAYOUT_LEFTRIGHT, w->sx - used);
}
/* Adjust the last row height to fit if necessary. */
@@ -422,10 +422,10 @@ layout_set_main_v(struct window *w)
if (i == rows)
i--;
used = ((i + 1) * height) - 1;
- if (w->sy <= used)
- continue;
- lcchild = TAILQ_LAST(&lccolumn->cells, layout_cells);
- layout_resize_adjust(lcchild, LAYOUT_TOPBOTTOM, w->sy - used);
+ if (w->sy <= used)
+ continue;
+ lcchild = TAILQ_LAST(&lccolumn->cells, layout_cells);
+ layout_resize_adjust(lcchild, LAYOUT_TOPBOTTOM, w->sy - used);
}
/* Adjust the last column width to fit if necessary. */