Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2016-10-05 14:01:10 +01:00
4 changed files with 37 additions and 10 deletions

6
cmd.c
View File

@ -600,8 +600,10 @@ cmd_mouse_at(struct window_pane *wp, struct mouse_event *m, u_int *xp,
if (y < wp->yoff || y >= wp->yoff + wp->sy)
return (-1);
*xp = x - wp->xoff;
*yp = y - wp->yoff;
if (xp != NULL)
*xp = x - wp->xoff;
if (yp != NULL)
*yp = y - wp->yoff;
return (0);
}