mirror of git://git.sv.gnu.org/nano.git
tweaks: rename another variable, for aptness
This commit is contained in:
parent
c38ffdc741
commit
19b6f906cc
|
@ -80,7 +80,7 @@ void set_colorpairs(void)
|
||||||
* its pair number, giving identical color pairs the same number. */
|
* its pair number, giving identical color pairs the same number. */
|
||||||
for (sint = syntaxes; sint != NULL; sint = sint->next) {
|
for (sint = syntaxes; sint != NULL; sint = sint->next) {
|
||||||
colortype *ink;
|
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) {
|
for (ink = sint->color; ink != NULL; ink = ink->next) {
|
||||||
const colortype *beforenow = sint->color;
|
const colortype *beforenow = sint->color;
|
||||||
|
@ -92,10 +92,8 @@ void set_colorpairs(void)
|
||||||
|
|
||||||
if (beforenow != ink)
|
if (beforenow != ink)
|
||||||
ink->pairnum = beforenow->pairnum;
|
ink->pairnum = beforenow->pairnum;
|
||||||
else {
|
else
|
||||||
ink->pairnum = clr_pair;
|
ink->pairnum = new_number++;
|
||||||
clr_pair++;
|
|
||||||
}
|
|
||||||
|
|
||||||
ink->attributes = COLOR_PAIR(ink->pairnum) |
|
ink->attributes = COLOR_PAIR(ink->pairnum) |
|
||||||
(ink->bright ? A_BOLD : A_NORMAL);
|
(ink->bright ? A_BOLD : A_NORMAL);
|
||||||
|
|
Loading…
Reference in New Issue