We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 937d61f commit 91d2cfaCopy full SHA for 91d2cfa
Terminal.Gui/View/View.cs
@@ -507,7 +507,15 @@ public void Dispose ()
507
#if DEBUG_IDISPOSABLE
508
WasDisposed = true;
509
510
- foreach (View instance in Instances.Where (x => x.WasDisposed).ToList ())
+ foreach (View? instance in Instances.Where (x =>
511
+ {
512
+ if (x is { })
513
514
+ return x.WasDisposed;
515
+ }
516
+
517
+ return false;
518
+ }).ToList ())
519
{
520
Instances.Remove (instance);
521
}
Tests/UnitTestsParallelizable/Input/ResponderTests.cs
@@ -4,8 +4,6 @@ namespace Terminal.Gui.InputTests;
4
5
public class ResponderTests
6
7
-
8
9
[Fact]
10
public void KeyPressed_Handled_True_Cancels_KeyPress ()
11
0 commit comments