diff options
| author | nicm <nicm> | 2016-10-05 12:32:13 +0000 |
|---|---|---|
| committer | nicm <nicm> | 2016-10-05 12:32:13 +0000 |
| commit | b4f95c43fca75a3ee713fdf76fe55bb1e8ebba36 (patch) | |
| tree | 4285c2e9b9979ff4bec78e9f16e938e62452201f | |
| parent | 1b31d148c94f48932f439baa4d336e7de1035ddf (diff) | |
| download | rtmux-b4f95c43fca75a3ee713fdf76fe55bb1e8ebba36.tar.gz rtmux-b4f95c43fca75a3ee713fdf76fe55bb1e8ebba36.tar.bz2 rtmux-b4f95c43fca75a3ee713fdf76fe55bb1e8ebba36.zip | |
Allow cmd_mouse_at return arguments to be NULL.
| -rw-r--r-- | cmd.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) 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); } |