summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2010-01-06 23:13:52 +0000
committernicm <nicm@openbsd.org>2010-01-06 23:13:52 +0000
commit82af8cdacda25eaeedc2c30e39012cecc318affe (patch)
tree64f9f239a575354551ff366ce67b19d97c396142
parentclean up this page a little; ok norby (diff)
downloadwireguard-openbsd-82af8cdacda25eaeedc2c30e39012cecc318affe.tar.xz
wireguard-openbsd-82af8cdacda25eaeedc2c30e39012cecc318affe.zip
Correctly clear 256-colour flag for aixterm colours.
-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;
}