Skip to content

Commit 215a3d9

Browse files
feature: automatically scroll to the end of the log
1 parent f00b159 commit 215a3d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Views/CommandLogContentPresenter.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,13 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang
146146
{
147147
Text = string.Empty;
148148
}
149+
ScrollToEnd();
149150
}
150151
else if (change.Property == PureTextProperty)
151152
{
152153
if (!string.IsNullOrEmpty(PureText))
153154
Text = PureText;
155+
ScrollToEnd();
154156
}
155157
}
156158

0 commit comments

Comments
 (0)