Skip to content
GitLab
Menu
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
bd97ae72
Commit
bd97ae72
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: set a modifier in a single place, for conciseness
parent
2ff398c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/rcfile.c
+3
-4
src/rcfile.c
with
3 additions
and
4 deletions
+3
-4
src/rcfile.c
View file @
bd97ae72
...
...
@@ -591,7 +591,8 @@ short color_to_short(const char *colorname, bool *bright)
if
(
strncasecmp
(
colorname
,
"bright"
,
6
)
==
0
)
{
*
bright
=
TRUE
;
colorname
+=
6
;
}
}
else
*
bright
=
FALSE
;
if
(
strcasecmp
(
colorname
,
"green"
)
==
0
)
return
COLOR_GREEN
;
...
...
@@ -624,7 +625,7 @@ short color_to_short(const char *colorname, bool *bright)
void
parse_colors
(
char
*
ptr
,
int
rex_flags
)
{
short
fg
,
bg
;
bool
bright
=
FALSE
;
bool
bright
;
char
*
item
;
if
(
!
opensyntax
)
{
...
...
@@ -779,8 +780,6 @@ colortype *parse_interface_color(char *combostr)
{
colortype
*
trio
=
nmalloc
(
sizeof
(
colortype
));
trio
->
bright
=
FALSE
;
if
(
parse_color_names
(
combostr
,
&
trio
->
fg
,
&
trio
->
bg
,
&
trio
->
bright
))
{
free
(
combostr
);
return
trio
;
...
...
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