#990070 irssi: -actcolor parameter for /highlight is not always respected

Package:
irssi
Source:
irssi
Description:
terminal based IRC client
Submitter:
Judit Foglszinger
Date:
2021-06-19 11:45:04 UTC
Severity:
minor
#990070#5
Date:
2021-06-19 11:41:33 UTC
From:
To:
Hi,

while trying to set two differently colored highlights for my nickname,
depending on if it's the first word in the line or not,
I observed the following.
(as using a random word had the same results, I'll use the string "aaa" here)

Commands used:

/hilight -actcolor %G  -color %G -regexp (?!^)aaa
/hilight -actcolor %M  -color %M -regexp ^aaa

Expected behaviour:
- If "aaa" is at the beginning of a line (eg <nick> aaa is this),
  there is a magenta colored highlight,
  both in the status bar and in the channel where "aaa" was written.
- If "aaa" is somewhere else than the beginning of line (eg <nick> this is aaa),
  both highlights happen in green.

Actual behaviour:
- If "aaa" is at the beginning of a line (eg <nick> aaa is this),
  there is a magenta colored highlight in the channel where "aaa" was written,
  but the highlight in the status bar is green.
- If "aaa" is somewhere else than the beginning of line (eg <nick> this is aaa),
  both highlights happen in green as expected.

If
/hilight -actcolor %M  -color %M -regexp ^aaa
is used alone, the coloring is as expected,
so the two commands seem to interfere with each other;
though not sure how, because if one command just would falsely match both cases,
I'd expect both colors being wrong.