mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 21:30:37 +08:00
enhance: do nothing if target is a binary file while blaming
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user