diff options
author | Boris Faure <billiob@gmail.com> | 2017-03-05 16:36:35 +0100 |
---|---|---|
committer | Boris Faure <billiob@gmail.com> | 2017-03-05 16:36:35 +0100 |
commit | f4813a229d019e713fac273e56272a828f09d894 (patch) | |
tree | 5cae624595a032536998ca06c05d95ad1e2c26a5 | |
parent | may fix mouse motion reporting. T4874 (diff) | |
download | terminology-f4813a229d019e713fac273e56272a828f09d894.tar.gz |
termio: remove dead code. CID1371738
-rw-r--r-- | src/bin/termio.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/bin/termio.c b/src/bin/termio.c index c837e92..e82e9ae 100644 --- a/src/bin/termio.c +++ b/src/bin/termio.c @@ -3813,7 +3813,6 @@ _rep_mouse_move(Termio *sd, int cx, int cy) case MOUSE_EXT_NONE: if ((cx < (0xff - ' ')) && (cy < (0xff - ' '))) { - if (btn > 2) btn = 0; buf[0] = 0x1b; buf[1] = '['; buf[2] = 'M'; @@ -3829,7 +3828,6 @@ _rep_mouse_move(Termio *sd, int cx, int cy) { int v, i; - if (btn > 2) btn = 0; buf[0] = 0x1b; buf[1] = '['; buf[2] = 'M'; @@ -3864,7 +3862,6 @@ _rep_mouse_move(Termio *sd, int cx, int cy) break; case MOUSE_EXT_URXVT: // ESC.[.NUM.;.NUM.;.NUM.M { - if (btn > 2) btn = 0; snprintf(buf, sizeof(buf), "%c[%i;%i;%iM", 0x1b, btn + 32 + ' ', cx + 1, cy + 1); |