From 5c5599592ae924ecc4ec0b8d5004b37200d5c576 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 29 Jun 2021 12:37:34 +0530 Subject: [PATCH] abort CSI parsing on NUL or DEL --- kitty/parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/parser.c b/kitty/parser.c index fd0dadf6b..fd31f8653 100644 --- a/kitty/parser.c +++ b/kitty/parser.c @@ -1227,6 +1227,7 @@ END_ALLOW_CASE_RANGE break; case NUL: case DEL: + SET_STATE(0); break; // no-op default: REPORT_ERROR("Invalid character in CSI: 0x%x, ignoring the sequence", ch);