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: cmd-string.c,v 1.7 2008-09-26 06:45:26 nicm Exp $ */
/* $Id: cmd-string.c,v 1.8 2008-12-08 16:19:51 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -131,7 +131,8 @@ cmd_string_parse(const char *s, struct cmd **cmd, char **cause)
if (argc == 0)
goto out;
*cmd = cmd_parse(argc, argv, cause);
if ((*cmd = cmd_parse(argc, argv, cause)) == NULL)
goto error;
rval = 0;
goto out;
default:
@@ -145,7 +146,7 @@ cmd_string_parse(const char *s, struct cmd **cmd, char **cause)
}
error:
xasprintf(cause, "bad command: %s", s);
xasprintf(cause, "invalid or unknown command: %s", s);
out:
if (buf != NULL)