diff options
Diffstat (limited to 'src/macos.m')
-rw-r--r-- | src/macos.m | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/macos.m b/src/macos.m index 24c83aec..53a6da00 100644 --- a/src/macos.m +++ b/src/macos.m | |||
@@ -529,15 +529,9 @@ enum iColorId removeColorEscapes_String(iString *d) { | |||
529 | for (;;) { | 529 | for (;;) { |
530 | const char *esc = strchr(cstr_String(d), '\v'); | 530 | const char *esc = strchr(cstr_String(d), '\v'); |
531 | if (esc) { | 531 | if (esc) { |
532 | const char *ptr = esc + 1; | 532 | const char *endp; |
533 | color = 0; | 533 | color = parseEscape_Color(esc, &endp); |
534 | if (*ptr == '\v') { | 534 | remove_Block(&d->chars, esc - cstr_String(d), endp - esc); |
535 | color += asciiExtended_ColorEscape; | ||
536 | ptr++; | ||
537 | } | ||
538 | color += *ptr - asciiBase_ColorEscape; | ||
539 | ptr++; | ||
540 | remove_Block(&d->chars, esc - cstr_String(d), ptr - esc); | ||
541 | } | 535 | } |
542 | else break; | 536 | else break; |
543 | } | 537 | } |