mirror of https://github.com/tmux/tmux.git
Allow cmd_mouse_at return arguments to be NULL.
This commit is contained in:
parent
1b31d148c9
commit
b4f95c43fc
6
cmd.c
6
cmd.c
|
@ -601,8 +601,10 @@ cmd_mouse_at(struct window_pane *wp, struct mouse_event *m, u_int *xp,
|
||||||
if (y < wp->yoff || y >= wp->yoff + wp->sy)
|
if (y < wp->yoff || y >= wp->yoff + wp->sy)
|
||||||
return (-1);
|
return (-1);
|
||||||
|
|
||||||
*xp = x - wp->xoff;
|
if (xp != NULL)
|
||||||
*yp = y - wp->yoff;
|
*xp = x - wp->xoff;
|
||||||
|
if (yp != NULL)
|
||||||
|
*yp = y - wp->yoff;
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue