1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Fix backspace for 2.2.0

Closes https://github.com/tmate-io/tmate/issues/81
This commit is contained in:
Nicolas Viennot 2016-04-18 15:55:02 -04:00
parent 849828ef07
commit f28f1f99a8

View File

@ -107,6 +107,11 @@ void tmate_client_pane_key(int pane_id, key_code key)
return;
}
if (tmate_session->client_protocol_version == 5 && key & KEYC_BASE) {
if ((key & KEYC_MASK_KEY) >= (KEYC_BSPACE & KEYC_MASK_KEY))
key -= 9;
}
pack(array, 3);
pack(int, TMATE_IN_PANE_KEY);
pack(int, pane_id);