diff options
author | Tiago Cunha <tcunha@gmx.com> | 2011-08-04 17:05:35 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2011-08-04 17:05:35 +0000 |
commit | 3ce1b91b1be4f1e2815619dbf3db7448916d7f49 (patch) | |
tree | dce4fe1a7e90ea99dc2d6aeaa08598c4da935cde /options-table.c | |
parent | 2589d117b0b48baefcb39ed3403481eaa24877e8 (diff) | |
download | rtmux-3ce1b91b1be4f1e2815619dbf3db7448916d7f49.tar.gz rtmux-3ce1b91b1be4f1e2815619dbf3db7448916d7f49.tar.bz2 rtmux-3ce1b91b1be4f1e2815619dbf3db7448916d7f49.zip |
Sync OpenBSD patchset 941:
Extend the mode-mouse option to add a third choice which means the mouse
does not enter copy mode. Patch from SF bug 3374493.
In future the mode-mouse option is likely to die and be broken into
several smaller options.
Diffstat (limited to 'options-table.c')
-rw-r--r-- | options-table.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/options-table.c b/options-table.c index daeade54..d289ca21 100644 --- a/options-table.c +++ b/options-table.c @@ -35,6 +35,9 @@ const char *options_table_mode_keys_list[] = { "emacs", "vi", NULL }; +const char *options_table_mode_mouse_list[] = { + "off", "on", "copy-mode", NULL +}; const char *options_table_clock_mode_style_list[] = { "12", "24", NULL }; @@ -483,7 +486,8 @@ const struct options_table_entry window_options_table[] = { }, { .name = "mode-mouse", - .type = OPTIONS_TABLE_FLAG, + .type = OPTIONS_TABLE_CHOICE, + .choices = options_table_mode_mouse_list, .default_num = 0 }, |