mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix VtSubstring helper method to correctly check chars copied (#19240)
This commit is contained in:
@@ -202,7 +202,7 @@ namespace System.Management.Automation.Internal
|
||||
}
|
||||
|
||||
// If the number of copied non-escape-sequence characters has reached the specified length, done copying.
|
||||
if (offset == length)
|
||||
if (copyStarted && offset == length)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user