From 6179cfc6703af1b0682fdd14829280b8a228c167 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 15 Apr 2021 12:57:58 +0530 Subject: [PATCH] Abort parsing of APC and PM escape codes on 0x00 and 0x7f Correct as per ECMA-48 section 8.3 and matches parsing of other escape codes --- kitty/parser.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kitty/parser.c b/kitty/parser.c index ed6ce0a03..a491d533f 100644 --- a/kitty/parser.c +++ b/kitty/parser.c @@ -1127,6 +1127,9 @@ accumulate_oth(Screen *screen, uint32_t ch, PyObject DUMP_UNUSED *dump_callback) switch(ch) { case ST: return true; + case DEL: + case NUL: + break; case ESC_ST: if (screen->parser_buf_pos > 0 && screen->parser_buf[screen->parser_buf_pos - 1] == ESC) { screen->parser_buf_pos--;