grc icon indicating copy to clipboard operation
grc copied to clipboard

Color ordering fix

Open jmenashe opened this issue 2 years ago • 2 comments

Modified pattern coloring process to apply coloring in an order consistent with configured color lists and regex groups.

Fixes garabik/grc#215.

jmenashe avatar Jun 06 '22 15:06 jmenashe

It cause an error:

Traceback (most recent call last):
  File "/usr/bin/grcat", line 238, in <module>
    add2list(clist, m, pattern['colours'])
  File "/usr/bin/grcat", line 105, in add2list
    clist.append((m.start(group+1), m.end(group+1), patterncolour[group]))
IndexError: list index out of range

when I use for journalctl It also lead wrong color for gpg

CoelacanthusHex avatar Aug 27 '22 06:08 CoelacanthusHex