diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-20 14:32:09 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-20 14:32:09 +0000 |
commit | b292f71c49b4222b34684aee44029ca2d6aeb4dd (patch) | |
tree | 819115b78b93b6bd560de429d09caa36ee57199a /cmd-set-option.c | |
parent | e32e0d569294ca7162f197cc7c369cd57050b193 (diff) | |
download | rtmux-b292f71c49b4222b34684aee44029ca2d6aeb4dd.tar.gz rtmux-b292f71c49b4222b34684aee44029ca2d6aeb4dd.tar.bz2 rtmux-b292f71c49b4222b34684aee44029ca2d6aeb4dd.zip |
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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c index fc665e84..5144418e 100644 --- a/cmd-set-option.c +++ b/cmd-set-option.c @@ -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 }, |