summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2018-06-24 21:24:10 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2018-06-24 21:24:10 +0000
commitc08d7265b2658aae3f5cadd577ea1a34d59aa0ca (patch)
tree86444c39b34320aaaedeeed369e56ab440a2b48f
parent8a5301c87b8beec79820ddad0777ef76b9fb4b75 (diff)
Minor cosmetic improvement from KOIE Hidetaka.
-rw-r--r--usr.bin/tmux/cmd-resize-pane.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/tmux/cmd-resize-pane.c b/usr.bin/tmux/cmd-resize-pane.c
index 43b3db61c4c..927b5bf444f 100644
--- a/usr.bin/tmux/cmd-resize-pane.c
+++ b/usr.bin/tmux/cmd-resize-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-resize-pane.c,v 1.33 2018/06/09 17:05:52 nicm Exp $ */
+/* $OpenBSD: cmd-resize-pane.c,v 1.34 2018/06/24 21:24:09 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -131,12 +131,12 @@ cmd_resize_pane_mouse_update(struct client *c, struct mouse_event *m)
struct winlink *wl;
struct window *w;
u_int y, ly, x, lx;
- struct layout_cell *cells[5], *lc;
- u_int ncells = 0, i, j, resizes = 0;
- enum layout_type type;
- static const int offsets[nitems(cells)][2] = {
+ static const int offsets[][2] = {
{ 0, 0 }, { 0, 1 }, { 1, 0 }, { 0, -1 }, { -1, 0 },
};
+ struct layout_cell *cells[nitems(offsets)], *lc;
+ u_int ncells = 0, i, j, resizes = 0;
+ enum layout_type type;
wl = cmd_mouse_window(m, NULL);
if (wl == NULL) {