Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
753d161b
Commit
753d161b
authored
Aug 22, 2005
by
Juri Linkov
Browse files
(turn_on_face): Check for TS_set_foreground and
TS_set_background depending on standout_mode. Simplify.
parent
bac3a1c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
src/term.c
src/term.c
+7
-11
No files found.
src/term.c
View file @
753d161b
...
...
@@ -2011,24 +2011,20 @@ turn_on_face (f, face_id)
if
(
TN_max_colors
>
0
)
{
char
*
p
;
char
*
ts
,
*
p
;
if
(
fg
>=
0
&&
TS_set_foreground
)
ts
=
standout_mode
?
TS_set_background
:
TS_set_foreground
;
if
(
fg
>=
0
&&
ts
)
{
if
(
standout_mode
)
p
=
tparam
(
TS_set_background
,
NULL
,
0
,
(
int
)
fg
);
else
p
=
tparam
(
TS_set_foreground
,
NULL
,
0
,
(
int
)
fg
);
p
=
tparam
(
ts
,
NULL
,
0
,
(
int
)
fg
);
OUTPUT
(
p
);
xfree
(
p
);
}
if
(
bg
>=
0
&&
TS_set_background
)
ts
=
standout_mode
?
TS_set_foreground
:
TS_set_background
;
if
(
bg
>=
0
&&
ts
)
{
if
(
standout_mode
)
p
=
tparam
(
TS_set_foreground
,
NULL
,
0
,
(
int
)
bg
);
else
p
=
tparam
(
TS_set_background
,
NULL
,
0
,
(
int
)
bg
);
p
=
tparam
(
ts
,
NULL
,
0
,
(
int
)
bg
);
OUTPUT
(
p
);
xfree
(
p
);
}
...
...
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