mirror of https://github.com/xzeldon/htop.git
Compare indices not index with pair
Fixes always true condition. Found by LGTM.com
This commit is contained in:
parent
bbac4c2a62
commit
ec0f5d0ba9
2
CRT.c
2
CRT.c
|
@ -794,7 +794,7 @@ void CRT_setColors(int colorScheme) {
|
|||
|
||||
for (int i = 0; i < 8; i++) {
|
||||
for (int j = 0; j < 8; j++) {
|
||||
if (ColorIndex(i, j) != ColorPairGrayBlack) {
|
||||
if (ColorIndex(i, j) != ColorIndexGrayBlack) {
|
||||
int bg = (colorScheme != COLORSCHEME_BLACKNIGHT)
|
||||
? (j == 0 ? -1 : j)
|
||||
: j;
|
||||
|
|
Loading…
Reference in New Issue