better read ahead condition
This commit is contained in:
@@ -888,13 +888,14 @@ export class EscapeSequenceParser extends Disposable implements IEscapeSequenceP
|
|||||||
case ParserAction.APC_PUT:
|
case ParserAction.APC_PUT:
|
||||||
// inner loop - exit APC_PUT: 0x18, 0x1a, 0x1b, 0x9c
|
// inner loop - exit APC_PUT: 0x18, 0x1a, 0x1b, 0x9c
|
||||||
// allowed: 00/08 .. 00/13, 02/00 .. 07/14 + NON_ASCII_PRINTABLE
|
// allowed: 00/08 .. 00/13, 02/00 .. 07/14 + NON_ASCII_PRINTABLE
|
||||||
// FIXME: 00/08 .. 00/13 currently handled by second APC_PUT invocation
|
|
||||||
for (let j = i + 1; ; ++j) {
|
for (let j = i + 1; ; ++j) {
|
||||||
if (j >= length || data[j] < 0x20 || (data[j] >= 0x7f && data[j] < NON_ASCII_PRINTABLE)) {
|
if (j < length && (
|
||||||
this._apcParser.put(data, i, j);
|
(data[j] >= 0x20 && data[j] < 0x7f) || (data[j] >= 0x08 && data[j] < 0x0e) || data[j] >= NON_ASCII_PRINTABLE
|
||||||
i = j - 1;
|
)
|
||||||
break;
|
) continue;
|
||||||
}
|
this._apcParser.put(data, i, j);
|
||||||
|
i = j - 1;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case ParserAction.APC_END:
|
case ParserAction.APC_END:
|
||||||
|
|||||||
Reference in New Issue
Block a user