grc
grc copied to clipboard
Color ordering off-by-one error.
Here is my config file:
regexp=(\./)(.*/)([^/]+)(\.\w+)
colours=bold white,magenta,cyan,yellow
Here is some sample output:
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.