Commit 9b08f2c1 authored by Juri Linkov's avatar Juri Linkov
Browse files

(turn_on_face): In standout mode apply specified

fg to bg, and specified bg to fg (this makes the logic of
inversion on terminal consistent with X).
parent 7ecc34e9
......@@ -2005,14 +2005,20 @@ turn_on_face (f, face_id)
if (fg >= 0 && TS_set_foreground)
{
p = tparam (TS_set_foreground, NULL, 0, (int) fg);
if (standout_mode)
p = tparam (TS_set_background, NULL, 0, (int) fg);
else
p = tparam (TS_set_foreground, NULL, 0, (int) fg);
OUTPUT (p);
xfree (p);
}
if (bg >= 0 && TS_set_background)
{
p = tparam (TS_set_background, NULL, 0, (int) bg);
if (standout_mode)
p = tparam (TS_set_foreground, NULL, 0, (int) bg);
else
p = tparam (TS_set_background, NULL, 0, (int) bg);
OUTPUT (p);
xfree (p);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment