Skip to content

Commit

Permalink
Add \E( as a possible start of an escape sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
tsjensen committed Feb 15, 2021
1 parent 352a7b6 commit b0d2dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unicode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
(*invis)++;
ansipos++;
} else if (ansipos == 1 && c == '[') {
} else if (ansipos == 1 && (c == '[' || c == '(')) {
/* Found '[' char after ESC. A CSI sequence has started. */
(*invis)++;
ansipos++;
Expand Down

0 comments on commit b0d2dd8

Please sign in to comment.