-
Notifications
You must be signed in to change notification settings - Fork 67
fix: plugin not work when colors are more than termcolors #137
Conversation
@p00f Would you please review this PR? |
If you defined `{colors = { "#cc241d", "#a89984" }, termcolors = {}}`, you can't reproduce the issue. Because there are seven colors and termcolors in default config. If you defined colors more than seven, colors = { "#cc241d", "#a89984", "#b16286", "#d79921", "#689d6a", "#d65d0e", "#458588", "#005f87" }, termcolors = {}, Or colors' length more than termcolors', colors = { "#cc241d", "#a89984"}, termcolors = { 3 }, then the issue can be reproduced. close p00f#120
0e27a1b
to
5123156
Compare
You haven't addressed the comments from the first review yet |
I haven't seen any comments. Where is it? |
Sorry, it only shows part of the comments when mouse hover. Click this link but nothing shows up. Can you post a screenshot of first review comments? |
@p00f Thanks. The difference is that No need complex |
It "handles" nil values by doing nothing, which is not what I want. When something is wrong, an error is better than silently doing the wrong thing |
@p00f It still has problem when user set config like that,
It's hard to debug the error for user. The error message shows |
This should be fixed now
The user can open an issue |
If you defined
{colors = { "#cc241d", "#a89984" }, termcolors = {}}
, you can't reproduce the issue. Because there are seven colors and termcolors in default config.If you defined colors more than seven,
Or colors' length more than termcolors',
then the issue can be reproduced.
close #120