| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…esn't have whitespace
|
PoshChan-Bot (@PoshChan) please retry linux, windows |
Sorry, something went wrong.
|
Steve Lee (@SteveL-MSFT), successfully started retry of PowerShell-CI-Linux, PowerShell-CI-Windows |
Sorry, something went wrong.
|
🎉v7.1.0-preview.1 has been released which incorporates this pull request.:tada: Handy links: |
Sorry, something went wrong.
…esn't have whitespace (PowerShell#11880) # Conflicts: # src/System.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs # test/powershell/engine/Formatting/ErrorView.Tests.ps1
…esn't have whitespace (PowerShell#11880)
| Back | FazBrowse Home | New Git URL |
PR Summary
This is a bit of an edge case. Where the error message is wider than the console window width and doesn't contain whitespace, then it doesn't get rendered as the calculation to split the string uses a negative index. Fix is to check that the string length subtracting the prefix length is greater than 0 before getting a substring, otherwise, just use it.
PR Context
#11827
PR Checklist