Do not store the mouse position we calculate as the start of a drag back

into the mouse event that later code uses, it has been adjusted and they
should use the original position. GitHub issue 1710.
This commit is contained in:
nicm
2019-05-03 18:42:40 +00:00
parent 84e4652513
commit 4097257bef
4 changed files with 7 additions and 5 deletions

4
cmd.c
View File

@ -484,8 +484,8 @@ cmd_mouse_at(struct window_pane *wp, struct mouse_event *m, u_int *xp,
x = m->lx + m->ox;
y = m->ly + m->oy;
} else {
x = m->x;
y = m->y;
x = m->x + m->ox;
y = m->y + m->oy;
}
log_debug("%s: x=%u, y=%u%s", __func__, x, y, last ? " (last)" : "");