Support mouse on preview in tree mode.

This commit is contained in:
nicm
2017-11-03 17:02:33 +00:00
parent ba93a647f1
commit 50a5f84cb4
7 changed files with 140 additions and 35 deletions

2
grid.c
View File

@ -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);
}