Closed Seppel3210 closed 1 month ago
Could you share a sample file?
You should get a similar diff between this commit https://github.com/Seppel3210/batteries/commit/e3ffef5301b0c391097368dc3b4d372934381418 and its parent
I guess a file that's a bit smaller would be this https://github.com/Seppel3210/batteries/blob/main/Batteries/Data/Fin/Lemmas.lean
I can't reproduce I'm afraid:
Could you confirm your difftastic version, your operating system, and your terminal emulator?
FYI I'm on a trip without my laptop, so I'll take a couple days to respond
turns out it was an issue with the git pager (less
) escaping unicode. Fixed by setting the env var LESSCHARSET=utf-8
.
this wasn't an issue with delta, as it uses itself as the pager
When writing Lean, which heavily uses unicode, my git diffs with difftastic look like this:
Whereas, e.g., delta looks like this:
Is there any way to tell difft to not escape unicode?