termiointernals: handle mouse wheel on normal mode after pos 94

This commit is contained in:
Boris Faure 2019-03-03 19:40:19 +01:00
parent cbe77cc98a
commit 8bc4c030c3
1 changed files with 2 additions and 2 deletions

View File

@ -2143,8 +2143,8 @@ termio_internal_mouse_wheel(Termio *sd,
buf[1] = '[';
buf[2] = 'M';
buf[3] = btn + ' ';
buf[4] = cx + 1 + ' ';
buf[5] = cy + 1 + ' ';
buf[4] = (cx > 94) ? ' ' : cx + 1 + ' ';
buf[5] = (cy > 94) ? ' ' : cy + 1 + ' ';
buf[6] = 0;
termpty_write(sd->pty, buf, strlen(buf));
}