Open hyrious opened 2 weeks ago
I did notice the same behavior in the past (and can reproduce your example). I find this interesting in ST (safe-mode), too:
Before saving the file, image => ST internal change detection? After saving => the Sublime git impl?
Version info
Description
The diff view seems not matching git itself. See the commit diff from github: https://github.com/hyrious/typst-syntax-highlight/commit/daee996baf44b0bc3a8a05aa24e2c9472703563e.diff and the screenshot:
Hint: the
{
and}
lines are chosen differently.I have tried using every git algorithm in comparing with the settings in Sublime Merge, using
system
git orbundled
git. However it seems there's no way to let Sublime Merge render the same as git.Steps to reproduce
You can test it on a new git repository, by committing the file's 2 versions:
Then try to print the commit diff with
git diff HEAD~1
, and compare the output with Sublime Merge.Expected behavior
The diff output should match git.
Debug Information