dandavison / delta

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

🐛 Highlighting of capitalisation changes does not match `diff-so-fancy` when using `delta diff-so-fancy` #1579

Open ketchupfriend opened 10 months ago

ketchupfriend commented 10 months ago

Essentially, diff-so-fancy will highlight caps like aa -> AA within a word, but delta does not. However, --diff-so-fancy mode for delta doesn't do it either.

git --no-pager diff @ @~1
diff --git a/sample.m b/sample.m
index d0b67f9..b068058 100644
--- a/sample.m
+++ b/sample.m
@@ -1 +1 @@
-AAaaAA
+AAAAAA

image

❱ delta --version
delta 0.16.5
❱ diff-so-fancy --version
Diff-so-fancy: https://github.com/so-fancy/diff-so-fancy
Version      : 1.4.4
ketchupfriend commented 10 months ago

Might be https://github.com/dandavison/delta/issues/1552