dandavison / delta

A syntax-highlighting pager for git, diff, grep, and blame output
https://dandavison.github.io/delta/
MIT License
21.43k stars 361 forks source link

🐛 `rg --json | delta` output has different colour depending on filename ("ini") #1513

Closed tbm closed 1 day ago

tbm commented 11 months ago

I don't know if this is a bug or intentional or something but it seems strange to me. I used ripgrep on some files and noticed that one file had a different colour. The file "ini" has different colours to any other files. (Maybe "init" is special cased?)

Reproduce:

$ echo "# [[liver]] {{gloss|organ of the body}}" > a
$ cp a ini
$ rg --json "\{" a | delta
$ rg --json "\{" ini | delta

delta

tbm commented 11 months ago

Original example where I noticed this:

delta2

It looks weird.

th1000s commented 1 day ago

Fixed with #1549, thank you for the report!