summaryrefslogtreecommitdiffstats
path: root/input.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-03-03 08:53:14 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-03-03 08:53:14 +0000
commitc36f67a2889ae0f5792ea88e8206d5d7db8c4839 (patch)
treeee104e470427d5857a23e1457afeccaee7ac2787 /input.c
parent7954126dcd6ec52020fde92c8be997482fa55ab6 (diff)
Fix a typo that meant we did not reset the background colour when it was
omitted in a 256-colour SGR ([48;5m). From Yusuke ENDOH.
Diffstat (limited to 'input.c')
-rw-r--r--input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input.c b/input.c
index 73e02099..f80e7fc1 100644
--- a/input.c
+++ b/input.c
@@ -1277,7 +1277,7 @@ input_csi_dispatch_sgr(struct input_ctx *ictx)
gc->fg = 8;
} else if (n == 48) {
gc->flags &= ~GRID_FLAG_BG256;
- gc->fg = 8;
+ gc->bg = 8;
}
} else {