mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
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
This commit is contained in:
@@ -1127,6 +1127,9 @@ accumulate_oth(Screen *screen, uint32_t ch, PyObject DUMP_UNUSED *dump_callback)
|
|||||||
switch(ch) {
|
switch(ch) {
|
||||||
case ST:
|
case ST:
|
||||||
return true;
|
return true;
|
||||||
|
case DEL:
|
||||||
|
case NUL:
|
||||||
|
break;
|
||||||
case ESC_ST:
|
case ESC_ST:
|
||||||
if (screen->parser_buf_pos > 0 && screen->parser_buf[screen->parser_buf_pos - 1] == ESC) {
|
if (screen->parser_buf_pos > 0 && screen->parser_buf[screen->parser_buf_pos - 1] == ESC) {
|
||||||
screen->parser_buf_pos--;
|
screen->parser_buf_pos--;
|
||||||
|
|||||||
Reference in New Issue
Block a user