Package: irssi
Version: 1.2.3-1
Severity: minor

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.


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'unstable'), (500, 'testing'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-6-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages irssi depends on:
ii  libc6                       2.31-11
ii  libglib2.0-0                2.66.8-1
ii  libperl5.32                 5.32.1-3
ii  libssl1.1                   1.1.1k-1
ii  libtinfo6                   6.2+20201114-2
ii  perl                        5.32.1-3
ii  perl-base [perlapi-5.32.1]  5.32.1-3

irssi recommends no packages.

Versions of packages irssi suggests:
pn  irssi-scripts  <none>

-- no debconf information

Reply via email to