From bc9dfec615a1f03130e92d38b809fbc873785dd6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 15 Jun 2020 06:53:35 +0530 Subject: [PATCH] Fix #2764 --- kitty/parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kitty/parser.c b/kitty/parser.c index 73a0b3c69..87392dbd1 100644 --- a/kitty/parser.c +++ b/kitty/parser.c @@ -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 {