Skip to content

Commit d91d604

Browse files
committed
Code cleanup - CancelEventArgs
1 parent 505d0bd commit d91d604

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Terminal.Gui/View/Navigation/AdvanceFocusEventArgs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
public class AdvanceFocusEventArgs : CancelEventArgs<bool>
55
{
66
/// <summary>Initializes a new instance.</summary>
7-
public AdvanceFocusEventArgs (NavigationDirection direction, TabBehavior? behavior)
7+
public AdvanceFocusEventArgs (NavigationDirection direction, TabBehavior? behavior) : base (false, false)
88
{
99
Direction = direction;
1010
Behavior = behavior;

Terminal.Gui/Views/HexView.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,9 +755,9 @@ private bool MoveDown (int bytes)
755755
// We can move down lines cleanly (without extending stream)
756756
Address += bytes;
757757
}
758-
else if ((bytes == BytesPerLine * Viewport.Height && _source.Length >= DisplayStart + BytesPerLine * Viewport.Height)
758+
else if ((bytes == BytesPerLine * Viewport.Height && _source!.Length >= DisplayStart + BytesPerLine * Viewport.Height)
759759
|| (bytes <= BytesPerLine * Viewport.Height - BytesPerLine
760-
&& _source.Length <= DisplayStart + BytesPerLine * Viewport.Height))
760+
&& _source!.Length <= DisplayStart + BytesPerLine * Viewport.Height))
761761
{
762762
long p = Address;
763763

0 commit comments

Comments
 (0)