summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2012-04-01 21:07:36 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2012-04-01 21:07:36 +0000
commita54246d2a621eb4bd88f7565855435b04c806c61 (patch)
treeb78e9b09a0ab703b9a96d996ef0322dee72d27ac /usr.bin/tmux
parente14491529a1d899e31a4ef647197584fa9f2b8e3 (diff)
Fix some indentation.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/layout.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/usr.bin/tmux/layout.c b/usr.bin/tmux/layout.c
index 2b453d5678f..190d7e344aa 100644
--- a/usr.bin/tmux/layout.c
+++ b/usr.bin/tmux/layout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: layout.c,v 1.12 2012/04/01 13:21:38 nicm Exp $ */
+/* $OpenBSD: layout.c,v 1.13 2012/04/01 21:07:35 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -498,18 +498,18 @@ layout_resize_pane_mouse(struct client *c, struct mouse_event *mouse)
pane_border = 0;
if ((c->last_mouse.b & MOUSE_BUTTON) != MOUSE_UP &&
- (c->last_mouse.b & MOUSE_RESIZE_PANE)) {
+ (c->last_mouse.b & MOUSE_RESIZE_PANE)) {
TAILQ_FOREACH(wp, &w->panes, entry) {
if (wp->xoff + wp->sx == c->last_mouse.x &&
- wp->yoff <= 1 + c->last_mouse.y &&
- wp->yoff + wp->sy >= c->last_mouse.y) {
+ wp->yoff <= 1 + c->last_mouse.y &&
+ wp->yoff + wp->sy >= c->last_mouse.y) {
layout_resize_pane(wp, LAYOUT_LEFTRIGHT,
mouse->x - c->last_mouse.x);
pane_border = 1;
}
if (wp->yoff + wp->sy == c->last_mouse.y &&
- wp->xoff <= 1 + c->last_mouse.x &&
- wp->xoff + wp->sx >= c->last_mouse.x) {
+ wp->xoff <= 1 + c->last_mouse.x &&
+ wp->xoff + wp->sx >= c->last_mouse.x) {
layout_resize_pane(wp, LAYOUT_TOPBOTTOM,
mouse->y - c->last_mouse.y);
pane_border = 1;
@@ -518,14 +518,14 @@ layout_resize_pane_mouse(struct client *c, struct mouse_event *mouse)
if (pane_border)
server_redraw_window(w);
} else if (mouse->b != MOUSE_UP &&
- mouse->b == (mouse->b & MOUSE_BUTTON)) {
+ mouse->b == (mouse->b & MOUSE_BUTTON)) {
TAILQ_FOREACH(wp, &w->panes, entry) {
if ((wp->xoff + wp->sx == mouse->x &&
- wp->yoff <= 1 + mouse->y &&
- wp->yoff + wp->sy >= mouse->y) ||
- (wp->yoff + wp->sy == mouse->y &&
- wp->xoff <= 1 + mouse->x &&
- wp->xoff + wp->sx >= mouse->x)) {
+ wp->yoff <= 1 + mouse->y &&
+ wp->yoff + wp->sy >= mouse->y) ||
+ (wp->yoff + wp->sy == mouse->y &&
+ wp->xoff <= 1 + mouse->x &&
+ wp->xoff + wp->sx >= mouse->x)) {
pane_border = 1;
}
}