From 8189667c3ebd67b955ecd9569b60ebec62e9f22d Mon Sep 17 00:00:00 2001 From: Tig Date: Sat, 21 Sep 2024 19:05:08 -0600 Subject: [PATCH] Code cleanup --- Terminal.Gui/View/Adornment/Adornment.cs | 1 - Terminal.Gui/View/View.Diagnostics.cs | 2 +- UnitTests/View/Mouse/GetViewsUnderMouseTests.cs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Terminal.Gui/View/Adornment/Adornment.cs b/Terminal.Gui/View/Adornment/Adornment.cs index bc852031b..1062e54bf 100644 --- a/Terminal.Gui/View/Adornment/Adornment.cs +++ b/Terminal.Gui/View/Adornment/Adornment.cs @@ -206,7 +206,6 @@ public class Adornment : View #region Mouse Support - // TODO: It's stoopid that this override changes the defn of the input coords from base. /// /// Indicates whether the specified Parent's SuperView-relative coordinates are within the Adornment's Thickness. /// diff --git a/Terminal.Gui/View/View.Diagnostics.cs b/Terminal.Gui/View/View.Diagnostics.cs index 6e5797e26..e3b22472c 100644 --- a/Terminal.Gui/View/View.Diagnostics.cs +++ b/Terminal.Gui/View/View.Diagnostics.cs @@ -20,7 +20,7 @@ public enum ViewDiagnosticFlags : uint Padding = 0b_0000_0010, /// - /// When enabled, and + /// When enabled, and /// will invert the foreground and background colors. /// MouseEnter = 0b_0000_00100 diff --git a/UnitTests/View/Mouse/GetViewsUnderMouseTests.cs b/UnitTests/View/Mouse/GetViewsUnderMouseTests.cs index 7a58779b2..474dfa687 100644 --- a/UnitTests/View/Mouse/GetViewsUnderMouseTests.cs +++ b/UnitTests/View/Mouse/GetViewsUnderMouseTests.cs @@ -795,7 +795,7 @@ public class GetViewsUnderMouseTests List found = View.GetViewsUnderMouse (new (mouseX, mouseY)); - string [] foundIds = found.Select (v => v.Id).ToArray (); + string [] foundIds = found.Select (v => v!.Id).ToArray (); Assert.Equal (viewIdStrings, foundIds);