mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-23 10:22:13 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user