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.
This commit is contained in:
Tiago Cunha 2011-03-19 23:28:30 +00:00
parent d0cca3924e
commit 9bc44043a4

View File

@ -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 {