summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/regc_color.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/regc_color.c b/generic/regc_color.c
index 843c05e..c41b971 100644
--- a/generic/regc_color.c
+++ b/generic/regc_color.c
@@ -308,7 +308,9 @@ pchr c;
co = GETCOLOR(cm, c);
sco = newsub(cm, co);
-
+ if (sco == COLORLESS) {
+ return COLORLESS;
+ }
if (co == sco) /* already in an open subcolor */
return co; /* rest is redundant */
cm->cd[co].nchrs--;