dandavison / delta

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

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

Open ketchupfriend opened 11 months ago

ketchupfriend commented 11 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 11 months ago

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