Change the way to show only space or no changes in DiffViewer

This commit is contained in:
leo 2020-07-13 20:21:14 +08:00
parent e08b7024fc
commit 087b147dd9
4 changed files with 34 additions and 24 deletions

View file

@ -223,15 +223,7 @@ namespace SourceGit.Git {
rs.Add(current);
rs.Fit();
if (rs.IsBinary) {
rs.Blocks.Clear();
} else if (rs.Blocks.Count == 0) {
var b = new Block();
b.Mode = LineMode.Indicator;
b.Append("NO CHANGES OR ONLY WHITESPACE CHANGES!!!");
rs.Blocks.Add(b);
}
if (rs.IsBinary) rs.Blocks.Clear();
return rs;
}