diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-03-03 08:53:15 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-03-03 08:53:15 +0000 |
commit | b4846f364f82ab895b47afcc352111218337b20d (patch) | |
tree | 1cdb7a72a5e9a9e079172936acea22a98f288c03 /usr.bin/tmux | |
parent | db775783609e0c62e612f4d246c7dce97f12ddc1 (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 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c index 96fe062d7ec..3cdc66dbde5 100644 --- a/usr.bin/tmux/input.c +++ b/usr.bin/tmux/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.35 2011/01/28 20:39:22 nicm Exp $ */ +/* $OpenBSD: input.c,v 1.36 2011/03/03 08:53:14 nicm 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 { |