enhance: do nothing if target is a binary file while blaming

This commit is contained in:
leo
2025-07-10 17:42:18 +08:00
parent 44f7877926
commit d5745b4a65

View File

@@ -352,10 +352,10 @@ namespace SourceGit.Views
if (change.Property == BlameDataProperty)
{
if (BlameData != null)
if (BlameData is { IsBinary: false } blame)
{
Models.TextMateHelper.SetGrammarByFileName(_textMate, BlameData.File);
Text = BlameData.Content;
Models.TextMateHelper.SetGrammarByFileName(_textMate, blame.File);
Text = blame.Content;
}
else
{