summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2018-06-24 21:24:09 +0000
committernicm <nicm@openbsd.org>2018-06-24 21:24:09 +0000
commit075e946b05b6367a4048ce325340f195471a51d7 (patch)
tree3d76bc5b86b598e3cdfd46d8588ddce49cca7c7d
parenttags should work more like other errors. In particular, avoid infinite (diff)
downloadwireguard-openbsd-075e946b05b6367a4048ce325340f195471a51d7.tar.xz
wireguard-openbsd-075e946b05b6367a4048ce325340f195471a51d7.zip
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) {