fix: do not draw separator line if all subject has been scrolled out of display viewbox

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-11-04 16:19:01 +08:00
parent 1fd8587667
commit 64d44efaf9

View File

@@ -104,6 +104,9 @@ namespace SourceGit.Views
lines.Sort((l, r) => l.StartOffset - r.StartOffset);
var lastSubjectLine = lines[0];
if (lastSubjectLine.StartOffset > SubjectLength)
return;
for (var i = 1; i < lines.Count; i++)
{
if (lines[i].StartOffset > SubjectLength)