Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/System.Management.Automation/utils/StringUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ internal static string VtSubstring(this string str, int startOffset, int length,
}

// If the number of copied non-escape-sequence characters has reached the specified length, done copying.
if (offset == length)
if (copyStarted && offset == length)
{
break;
}
Expand Down