This commit is contained in:
Kovid Goyal 2020-06-15 06:53:35 +05:30
parent 7824739034
commit bc9dfec615
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -821,12 +821,13 @@ dispatch_dcs(Screen *screen, PyObject DUMP_UNUSED *dump_callback) {
}
break;
case PENDING_MODE_CHAR:
if (screen->parser_buf_pos > 2 && (screen->parser_buf[1] == '1' || screen->parser_buf[2] == '2') && screen->parser_buf[2] == 's') {
if (screen->parser_buf_pos > 2 && (screen->parser_buf[1] == '1' || screen->parser_buf[1] == '2') && screen->parser_buf[2] == 's') {
if (screen->parser_buf[1] == '1') {
screen->pending_mode.activated_at = monotonic();
REPORT_COMMAND(screen_start_pending_mode);
} else {
// ignore stop without matching start
REPORT_ERROR("Pending mode stop command issued while not in pending mode");
REPORT_COMMAND(screen_stop_pending_mode);
}
} else {