Add \E( as a possible start of an escape sequence

This commit is contained in:
Thomas Jensen 2021-02-14 20:54:15 +01:00
parent 352a7b6d5d
commit b0d2dd835d
No known key found for this signature in database
GPG Key ID: A4ACEE270D0FB7DB

View File

@ -135,7 +135,7 @@ uint32_t *advance_next32(const uint32_t *s, size_t *invis)
/* Found an ESC char, count it as invisible and move 1 forward in the detection of CSI sequences */ /* Found an ESC char, count it as invisible and move 1 forward in the detection of CSI sequences */
(*invis)++; (*invis)++;
ansipos++; ansipos++;
} else if (ansipos == 1 && c == '[') { } else if (ansipos == 1 && (c == '[' || c == '(')) {
/* Found '[' char after ESC. A CSI sequence has started. */ /* Found '[' char after ESC. A CSI sequence has started. */
(*invis)++; (*invis)++;
ansipos++; ansipos++;