From 03960f937981b8aa2f58febc8885ba2403de5099 Mon Sep 17 00:00:00 2001 From: tznind Date: Wed, 27 Nov 2024 13:48:08 +0000 Subject: [PATCH] Restore return if unit tests --- Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsDriver.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsDriver.cs b/Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsDriver.cs index f5574b8a0b..28b776dade 100644 --- a/Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsDriver.cs +++ b/Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsDriver.cs @@ -225,6 +225,11 @@ public WindowsConsole.ConsoleKeyInfoEx ToConsoleKeyInfoEx (WindowsConsole.KeyEve public override void UpdateCursor () { + if (RunningUnitTests) + { + return; + } + if (Col < 0 || Row < 0 || Col >= Cols || Row >= Rows) { GetCursorVisibility (out CursorVisibility cursorVisibility);