summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/term.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/term.c b/src/term.c
index c0eb7be8d56..452427f6ddc 100644
--- a/src/term.c
+++ b/src/term.c
@@ -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);
}