Fix one variant of the ArgumentOutOfRangeException
issues
#967
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix #919
This is one variant of the many
ArgumentOutOfRangeException
issues.For this particular issue, the exception happens in one of the 3 conditions:
The fix is simple, just don't change the color of the prompt in those cases.
Issue #932 is an instance caused by changing the prompt function to produce a very short string:
$
.Issue #849 is another instance caused by changing the prompt function to produce an extra new line at the end of the prompt message.
Issue #843 is another instance caused by changing the prompt function to produce extra new lines at the end of the prompt message.
I believe issue #863 happens because after
cd
into a nested folder, the prompt string is long enough to result in a wrapped line.I believe issue #875 is also because
cd
results in a longer prompt string that gets wrapped into the next line.Issue #843 also has a report about a long prompt causing the cursor to appear in its own line (line was wrapped).
Issue #786 is an instance where the cursor appears in its own line because of window resizing.