mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-27 10:33:09 +01:00
Oops, CAN and SUB should abort the sequence (return to first state), not remain
in the same state.
This commit is contained in:
parent
8dd2f0da3f
commit
6c1f03578d
6
input.c
6
input.c
@ -400,6 +400,9 @@ input_state_sequence_first(u_char ch, struct input_ctx *ictx)
|
|||||||
/* Abort sequence and begin with new. */
|
/* Abort sequence and begin with new. */
|
||||||
input_state(ictx, input_state_escape);
|
input_state(ictx, input_state_escape);
|
||||||
} else if (ch != 0x18 && ch != 0x1a) { /* CAN and SUB */
|
} else if (ch != 0x18 && ch != 0x1a) { /* CAN and SUB */
|
||||||
|
/* Abort sequence. */
|
||||||
|
input_state(ictx, input_state_first);
|
||||||
|
} else {
|
||||||
/* Handle C0 immediately. */
|
/* Handle C0 immediately. */
|
||||||
input_handle_c0_control(ch, ictx);
|
input_handle_c0_control(ch, ictx);
|
||||||
}
|
}
|
||||||
@ -465,6 +468,9 @@ input_state_sequence_next(u_char ch, struct input_ctx *ictx)
|
|||||||
/* Abort sequence and begin with new. */
|
/* Abort sequence and begin with new. */
|
||||||
input_state(ictx, input_state_escape);
|
input_state(ictx, input_state_escape);
|
||||||
} else if (ch != 0x18 && ch != 0x1a) { /* CAN and SUB */
|
} else if (ch != 0x18 && ch != 0x1a) { /* CAN and SUB */
|
||||||
|
/* Abort sequence. */
|
||||||
|
input_state(ictx, input_state_first);
|
||||||
|
} else {
|
||||||
/* Handle C0 immediately. */
|
/* Handle C0 immediately. */
|
||||||
input_handle_c0_control(ch, ictx);
|
input_handle_c0_control(ch, ictx);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user