summaryrefslogtreecommitdiff
path: root/src/ui/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/text.c')
-rw-r--r--src/ui/text.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/text.c b/src/ui/text.c
index 83073d1f..68dce44d 100644
--- a/src/ui/text.c
+++ b/src/ui/text.c
@@ -995,11 +995,11 @@ static iRect run_Font_(iFont *d, const iRunArgs *args) {
995 if (ch == '\r') { /* color change */ 995 if (ch == '\r') { /* color change */
996 iChar esc = nextChar_(&chPos, args->text.end); 996 iChar esc = nextChar_(&chPos, args->text.end);
997 int colorNum = args->color; 997 int colorNum = args->color;
998 if (esc != 0x24) { /* ASCII Cancel */ 998 if (esc == '\r') { /* Extended range. */
999 esc = nextChar_(&chPos, args->text.end) + asciiExtended_ColorEscape;
999 colorNum = esc - asciiBase_ColorEscape; 1000 colorNum = esc - asciiBase_ColorEscape;
1000 } 1001 }
1001 else if (esc == '\r') { /* Extended range. */ 1002 else if (esc != 0x24) { /* ASCII Cancel */
1002 esc = nextChar_(&chPos, args->text.end) + asciiExtended_ColorEscape;
1003 colorNum = esc - asciiBase_ColorEscape; 1003 colorNum = esc - asciiBase_ColorEscape;
1004 } 1004 }
1005 if (mode & draw_RunMode && ~mode & permanentColorFlag_RunMode) { 1005 if (mode & draw_RunMode && ~mode & permanentColorFlag_RunMode) {