grc icon indicating copy to clipboard operation
grc copied to clipboard

Color ordering off-by-one error.

Open jmenashe opened this issue 2 years ago • 1 comments

Here is my config file:

regexp=(\./)(.*/)([^/]+)(\.\w+)
colours=bold white,magenta,cyan,yellow

Here is some sample output:

image

The regex seems to match correctly, but the colors are in the wrong order. The expected ordering is bold white, magenta, cyan, and then yellow. But the output ordering is magenta, cyan, yellow, and then bold white. In other words, the color palette is shifted down by one index, with the first value (white) wrapping to the end of the list.

jmenashe avatar Jun 06 '22 15:06 jmenashe