summaryrefslogtreecommitdiffstats
path: root/options-table.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-07-30 18:01:26 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-07-30 18:01:26 +0000
commitcc5bcbfb593db8a1a4dda0eba51f059b85a6abec (patch)
treec92dc7669a8c7e9ebe710888b8a5a6c79b9ee264 /options-table.c
parentbe179f6d7eec39c63d6b8d7aa90a2acefe4e7e04 (diff)
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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/options-table.c b/options-table.c
index 4a385051..ed06dd54 100644
--- a/options-table.c
+++ b/options-table.c
@@ -36,6 +36,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
};
@@ -484,7 +487,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
},