From 9bc534b19b33c2d1bbc1ce209bbff2bc9b129cfe Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Fri, 9 Oct 2026 10:09:22 -0700 Subject: [PATCH] Remove the redundant `#if UNIX` check from the Unix only code (#28120) --- .../host/msh/ConsoleHostRawUserInterface.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostRawUserInterface.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostRawUserInterface.cs index 58630f5b3..3181d77d0 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostRawUserInterface.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostRawUserInterface.cs @@ -1617,13 +1617,11 @@ namespace Microsoft.PowerShell } } -#if UNIX // Make sure that the physical cursor position matches where we think it is. // This is a problem on *nix, because input that the user types is echoed // and that moves the cursor. As a consequence, the cursor needs to be repositioned // before we update the screen. CursorPosition = origin; -#endif // iterate through the buffer to set foreach (var charitem in contents)