From 9bc44043a4e66d7c8edb525d32aeaa1824ddbd11 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Sat, 19 Mar 2011 23:28:30 +0000 Subject: [PATCH] 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. --- input.c | 4 ++-- 1 file 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 @@ -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 {