Remove the redundant #if UNIX check from the Unix only code (#28120)

This commit is contained in:
Dongbo Wang authored and GitHub committed 2026-10-09 10:09:22 -07:00
1 parent bcd1e697d6
commit 9bc534b19b
1 file changed
-2
@@ -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)