=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-resize-pane.c,v retrieving revision 1.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- src/usr.bin/tmux/cmd-resize-pane.c 2018/06/09 17:05:52 1.33 +++ src/usr.bin/tmux/cmd-resize-pane.c 2018/06/24 21:24:09 1.34 @@ -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 @@ -131,12 +131,12 @@ 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) {