diff options
author | Thomas Adam <thomas@xteddy.org> | 2019-07-06 23:02:26 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2019-07-06 23:02:26 +0100 |
commit | 3a4cf62aa9819472a26f0ed3c3101d7556184656 (patch) | |
tree | da8ac1f44535bf4565a62148a3cb838fb3d80ff0 /cmd.c | |
parent | bc112a8c8990f272144b482e13c1ce32ac9722e0 (diff) | |
parent | ddf53d6e4e76463e6d777b2de7304572333935e9 (diff) | |
download | rtmux-3a4cf62aa9819472a26f0ed3c3101d7556184656.tar.gz rtmux-3a4cf62aa9819472a26f0ed3c3101d7556184656.tar.bz2 rtmux-3a4cf62aa9819472a26f0ed3c3101d7556184656.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'cmd.c')
-rw-r--r-- | cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -596,8 +596,8 @@ cmd_mouse_at(struct window_pane *wp, struct mouse_event *m, u_int *xp, } log_debug("%s: x=%u, y=%u%s", __func__, x, y, last ? " (last)" : ""); - if (m->statusat == 0 && y > 0) - y--; + if (m->statusat == 0 && y >= m->statuslines) + y -= m->statuslines; if (x < wp->xoff || x >= wp->xoff + wp->sx) return (-1); |