summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2010-01-06 23:13:53 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2010-01-06 23:13:53 +0000
commit02bbca881e261702187547b97abb736417019a9a (patch)
tree7f7ab2266cd71ea29ce051e40669f936bd08dfc4 /usr.bin/tmux
parent9f0991d3496df6e03b39774c1cad5a238d3ae8c7 (diff)
Correctly clear 256-colour flag for aixterm colours.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/input.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c
index c4991ac5d39..53b0c567705 100644
--- a/usr.bin/tmux/input.c
+++ b/usr.bin/tmux/input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input.c,v 1.25 2009/12/14 21:33:38 nicm Exp $ */
+/* $OpenBSD: input.c,v 1.26 2010/01/06 23:13:52 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1481,6 +1481,7 @@ input_handle_sequence_sgr(struct input_ctx *ictx)
case 95:
case 96:
case 97:
+ gc->flags &= ~GRID_FLAG_FG256;
gc->fg = m;
break;
case 100:
@@ -1491,6 +1492,7 @@ input_handle_sequence_sgr(struct input_ctx *ictx)
case 105:
case 106:
case 107:
+ gc->flags &= ~GRID_FLAG_BG256;
gc->bg = m;
break;
}