Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
19b6f906
Commit
19b6f906
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: rename another variable, for aptness
parent
c38ffdc7
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/color.c
+3
-5
src/color.c
with
3 additions
and
5 deletions
+3
-5
src/color.c
View file @
19b6f906
...
...
@@ -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_pai
r
=
NUMBER_OF_ELEMENTS
+
1
;
int
new_numbe
r
=
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
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help