tweaks: rename another variable, for aptness

This commit is contained in:
Benno Schulenberg 2016-07-25 10:57:33 +02:00
parent c38ffdc741
commit 19b6f906cc
1 changed files with 3 additions and 5 deletions

View File

@ -80,7 +80,7 @@ void set_colorpairs(void)
* its pair number, giving identical color pairs the same number. */
for (sint = syntaxes; sint != NULL; sint = sint->next) {
colortype *ink;
int clr_pair = NUMBER_OF_ELEMENTS + 1;
int new_number = NUMBER_OF_ELEMENTS + 1;
for (ink = sint->color; ink != NULL; ink = ink->next) {
const colortype *beforenow = sint->color;
@ -92,10 +92,8 @@ void set_colorpairs(void)
if (beforenow != ink)
ink->pairnum = beforenow->pairnum;
else {
ink->pairnum = clr_pair;
clr_pair++;
}
else
ink->pairnum = new_number++;
ink->attributes = COLOR_PAIR(ink->pairnum) |
(ink->bright ? A_BOLD : A_NORMAL);