瀏覽代碼

Code cleanup

Tig 10 月之前
父節點
當前提交
8189667c3e

+ 0 - 1
Terminal.Gui/View/Adornment/Adornment.cs

@@ -206,7 +206,6 @@ public class Adornment : View
     #region Mouse Support
     #region Mouse Support
 
 
 
 
-    // TODO: It's stoopid that this override changes the defn of the input coords from base. 
     /// <summary>
     /// <summary>
     /// Indicates whether the specified Parent's SuperView-relative coordinates are within the Adornment's Thickness.
     /// Indicates whether the specified Parent's SuperView-relative coordinates are within the Adornment's Thickness.
     /// </summary>
     /// </summary>

+ 1 - 1
Terminal.Gui/View/View.Diagnostics.cs

@@ -20,7 +20,7 @@ public enum ViewDiagnosticFlags : uint
     Padding = 0b_0000_0010,
     Padding = 0b_0000_0010,
 
 
     /// <summary>
     /// <summary>
-    ///     When enabled, <see cref="Adornment.OnMouseEnter(Gui.MouseEvent)"/> and <see cref="Adornment.OnMouseLeave(Gui.MouseEvent)"/>
+    ///     When enabled, <see cref="Adornment.OnMouseEnter"/> and <see cref="Adornment.OnMouseLeave"/>
     ///     will invert the foreground and background colors.
     ///     will invert the foreground and background colors.
     /// </summary>
     /// </summary>
     MouseEnter = 0b_0000_00100
     MouseEnter = 0b_0000_00100

+ 1 - 1
UnitTests/View/Mouse/GetViewsUnderMouseTests.cs

@@ -795,7 +795,7 @@ public class GetViewsUnderMouseTests
 
 
         List<View?> found = View.GetViewsUnderMouse (new (mouseX, mouseY));
         List<View?> 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);
         Assert.Equal (viewIdStrings, foundIds);