aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2011-03-19 23:28:30 +0000
committerTiago Cunha <tcunha@gmx.com>2011-03-19 23:28:30 +0000
commit9bc44043a4e66d7c8edb525d32aeaa1824ddbd11 (patch)
tree0cd5973ced9f07af9517e88eb30ec01e23928755
parentd0cca3924ec7d04321259264b23d0e083f2414c5 (diff)
downloadrtmux-9bc44043a4e66d7c8edb525d32aeaa1824ddbd11.tar.gz
rtmux-9bc44043a4e66d7c8edb525d32aeaa1824ddbd11.tar.bz2
rtmux-9bc44043a4e66d7c8edb525d32aeaa1824ddbd11.zip
Sync OpenBSD patchset 864:
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.
-rw-r--r--input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/input.c b/input.c
index 7ea1e963..ada6e708 100644
--- a/input.c
+++ b/input.c
@@ -1,4 +1,4 @@
-/* $Id: input.c,v 1.115 2011-02-15 15:21:14 tcunha Exp $ */
+/* $Id: input.c,v 1.116 2011-03-19 23:28:30 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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 {