From c36f67a2889ae0f5792ea88e8206d5d7db8c4839 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 3 Mar 2011 08:53:14 +0000 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {