mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
Merge branch 'obsd-master'
Conflicts: format.c window.c
This commit is contained in:
commit
bae95844d7
29 changed files with 747 additions and 486 deletions
15
input-keys.c
15
input-keys.c
|
|
@ -204,6 +204,21 @@ input_mouse(struct window_pane *wp, struct session *s, struct mouse_event *m)
|
|||
char buf[40];
|
||||
size_t len;
|
||||
struct paste_buffer *pb;
|
||||
u_int i;
|
||||
|
||||
/*
|
||||
* If the alternate screen is active and hasn't enabled the mouse, send
|
||||
* up and down key presses for the mouse wheel.
|
||||
*/
|
||||
if (wp->saved_grid != NULL && !(wp->screen->mode & ALL_MOUSE_MODES)) {
|
||||
for (i = 0; i < m->scroll; i++) {
|
||||
if (m->wheel == MOUSE_WHEEL_UP)
|
||||
input_key(wp, KEYC_UP);
|
||||
else
|
||||
input_key(wp, KEYC_DOWN);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (wp->screen->mode & ALL_MOUSE_MODES) {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue