diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-07-20 16:01:07 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-07-20 16:01:07 +0000 |
commit | 9a07e8f3724646762708eab10e102a6a9a8c5583 (patch) | |
tree | b28520f17af9760ed4c17472218d5034d23821b9 /cmd-set-option.c | |
parent | e8957009c7766fae83e892c3606b4d163db35b7e (diff) |
Sync OpenBSD patchset 147:
Add a status-justify option to allow the window list in the status line to be
positioned at the left, centre, or right.
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r-- | cmd-set-option.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c index 608f26c4..e8896548 100644 --- a/cmd-set-option.c +++ b/cmd-set-option.c @@ -1,4 +1,4 @@ -/* $Id: cmd-set-option.c,v 1.68 2009-07-19 14:35:56 tcunha Exp $ */ +/* $Id: cmd-set-option.c,v 1.69 2009-07-20 16:01:07 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -45,6 +45,9 @@ const struct cmd_entry cmd_set_option_entry = { const char *set_option_status_keys_list[] = { "emacs", "vi", NULL }; +const char *set_option_status_justify_list[] = { + "left", "centre", "right", NULL +}; const char *set_option_bell_action_list[] = { "none", "any", "current", NULL }; @@ -69,6 +72,8 @@ const struct set_option_entry set_option_table[] = { { "status-bg", SET_OPTION_COLOUR, 0, 0, NULL }, { "status-fg", SET_OPTION_COLOUR, 0, 0, NULL }, { "status-interval", SET_OPTION_NUMBER, 0, INT_MAX, NULL }, + { "status-justify", + SET_OPTION_CHOICE, 0, 0, set_option_status_justify_list }, { "status-keys", SET_OPTION_CHOICE, 0, 0, set_option_status_keys_list }, { "status-left", SET_OPTION_STRING, 0, 0, NULL }, { "status-left-length", SET_OPTION_NUMBER, 0, SHRT_MAX, NULL }, |