Make window options work the same was as session options, add mode-fg/mode-bg options, force -g for global on set/show/setw/showw/

This commit is contained in:
Nicholas Marriott
2008-12-08 16:19:51 +00:00
parent f008d303e7
commit 7a82e86827
27 changed files with 690 additions and 768 deletions

View File

@ -1,4 +1,4 @@
/* $Id: input.c,v 1.68 2008-12-05 20:04:06 nicm Exp $ */
/* $Id: input.c,v 1.69 2008-12-08 16:19:51 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -512,7 +512,7 @@ input_state_utf8(u_char ch, struct input_ctx *ictx)
void
input_handle_character(u_char ch, struct input_ctx *ictx)
{
if (ictx->w->flags & WINDOW_UTF8 && ch > 0x7f) {
if (ch > 0x7f && options_get_number(&ictx->w->options, "utf8")) {
/*
* UTF-8 sequence.
*