Skip to content

Commit 64d44ef

Browse files
committed
fix: do not draw separator line if all subject has been scrolled out of display viewbox
Signed-off-by: leo <longshuang@msn.cn>
1 parent 1fd8587 commit 64d44ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Views/CommitMessageToolBox.axaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ public override void Render(DrawingContext context)
104104
lines.Sort((l, r) => l.StartOffset - r.StartOffset);
105105

106106
var lastSubjectLine = lines[0];
107+
if (lastSubjectLine.StartOffset > SubjectLength)
108+
return;
109+
107110
for (var i = 1; i < lines.Count; i++)
108111
{
109112
if (lines[i].StartOffset > SubjectLength)

0 commit comments

Comments
 (0)