aboutsummaryrefslogtreecommitdiff
path: root/listbas.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-07-17 03:36:03 -0400
committerB. Watson <urchlay@slackware.uk>2024-07-17 03:36:03 -0400
commit7f0e34424af36acb4846497f6a847d4008dec48f (patch)
tree4c1448171cdd62964d1b241ffe9e966b2d2a96a8 /listbas.c
parent52553dcc13aec4669dab5483ce268a2b1d4bf4f1 (diff)
downloadbw-atari8-tools-7f0e34424af36acb4846497f6a847d4008dec48f.tar.gz
listbas: don't print duplicate color codes for "(" ops.
Diffstat (limited to 'listbas.c')
-rw-r--r--listbas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/listbas.c b/listbas.c
index fe2cbd4..ee4c68c 100644
--- a/listbas.c
+++ b/listbas.c
@@ -422,7 +422,7 @@ void print_mixed_case(const char *name) {
while(( c = *name++)) {
if(c >= 'A' && c <= 'Z')
c |= 0x20;
- if(color && c == '(') color_on(color_op);
+ if(color && c == '(' && cur_color != color_op) color_on(color_op);
outchr(c);
}
}