Repository navigation
Alternate: Fix IndexOutOfRangeException in GenerateRender - #1050
Carl Morris (msftrncs) wants to merge 2 commits into
Conversation
Insure that the next token on the token stack is checked for being the final token so that in the rare event that the EOS token is missing, rendering doesn't attempt to access non-existant tokens. Optimization of redundant evaluation in the subject `while` loop. Optimization of check for last token in current state. Fixes PowerShell#911
Test for Render Exception on missing EOS token when a nested token is also present.
aa98f7d to
7e06fa7
Compare
|
I like your changes better. I will update mine to be the same as yours with additional comments and one more test to cover the |
|
Interestingly, the |
|
Carl Morris (@msftrncs) Yes :) |
|
I almost submitted #989 with a the |
|
No worries at all. I didn't realize the |
|
Carl Morris (@msftrncs) Do you mind taking a look at my updates to #1049? |
|
Also, I invited you as a contributor to the PSReadLine repo, would you like to accept it? 😄 |
|
Close this one as #1049 has been merged. Thanks Carl Morris (@msftrncs)! |
Offering slightly different, but really the same, fix for #911, along with a test, but with less explanation.
/cc: Dongbo Wang (@daxian-dbw)