summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/grid.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-11-03 17:02:33 +0000
committernicm <nicm@openbsd.org>2017-11-03 17:02:33 +0000
commit63c9949db5072e4063e65b31cd8a9e84b2b44aa1 (patch)
tree3160c8b5ff6d8e335d01d0df591daa6c69136ad3 /usr.bin/tmux/grid.c
parentRemove alternative implementations of GMX CAM setup logic (diff)
downloadwireguard-openbsd-63c9949db5072e4063e65b31cd8a9e84b2b44aa1.tar.xz
wireguard-openbsd-63c9949db5072e4063e65b31cd8a9e84b2b44aa1.zip
Support mouse on preview in tree mode.
Diffstat (limited to 'usr.bin/tmux/grid.c')
-rw-r--r--usr.bin/tmux/grid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/grid.c b/usr.bin/tmux/grid.c
index cb9953c72e5..9832e75b150 100644
--- a/usr.bin/tmux/grid.c
+++ b/usr.bin/tmux/grid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grid.c,v 1.77 2017/09/11 06:40:46 nicm Exp $ */
+/* $OpenBSD: grid.c,v 1.78 2017/11/03 17:02:33 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -182,7 +182,7 @@ grid_clear_cell(struct grid *gd, u_int px, u_int py, u_int bg)
static int
grid_check_y(struct grid *gd, u_int py)
{
- if ((py) >= (gd)->hsize + (gd)->sy) {
+ if (py >= gd->hsize + gd->sy) {
log_debug("y out of range: %u", py);
return (-1);
}