diff options
author | nicm <nicm> | 2020-04-22 06:57:13 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-04-22 06:57:13 +0000 |
commit | de5163a634374d64f98a79afafe0c2a526c21a04 (patch) | |
tree | 8f1309185c61856da00810fa50c937d9ed01d18b /options-table.c | |
parent | 445dfa8512b3b5552a444dd03958cdec3f968f83 (diff) | |
download | rtmux-de5163a634374d64f98a79afafe0c2a526c21a04.tar.gz rtmux-de5163a634374d64f98a79afafe0c2a526c21a04.tar.bz2 rtmux-de5163a634374d64f98a79afafe0c2a526c21a04.zip |
Change so main-pane-width and height can be given as a percentage.
Diffstat (limited to 'options-table.c')
-rw-r--r-- | options-table.c | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/options-table.c b/options-table.c index 6537e2c9..23e5af6f 100644 --- a/options-table.c +++ b/options-table.c @@ -647,19 +647,15 @@ const struct options_table_entry options_table[] = { }, { .name = "main-pane-height", - .type = OPTIONS_TABLE_NUMBER, + .type = OPTIONS_TABLE_STRING, .scope = OPTIONS_TABLE_WINDOW, - .minimum = 1, - .maximum = INT_MAX, - .default_num = 24 + .default_str = "24" }, { .name = "main-pane-width", - .type = OPTIONS_TABLE_NUMBER, + .type = OPTIONS_TABLE_STRING, .scope = OPTIONS_TABLE_WINDOW, - .minimum = 1, - .maximum = INT_MAX, - .default_num = 80 + .default_str = "80" }, { .name = "mode-keys", @@ -696,19 +692,15 @@ const struct options_table_entry options_table[] = { }, { .name = "other-pane-height", - .type = OPTIONS_TABLE_NUMBER, + .type = OPTIONS_TABLE_STRING, .scope = OPTIONS_TABLE_WINDOW, - .minimum = 0, - .maximum = INT_MAX, - .default_num = 0 + .default_str = "0" }, { .name = "other-pane-width", - .type = OPTIONS_TABLE_NUMBER, + .type = OPTIONS_TABLE_STRING, .scope = OPTIONS_TABLE_WINDOW, - .minimum = 0, - .maximum = INT_MAX, - .default_num = 0 + .default_str = "0" }, { .name = "pane-active-border-style", |