diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-07-30 18:01:27 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-07-30 18:01:27 +0000 |
commit | bf59037af026e89ecc7ac063ca02fafa76908d3e (patch) | |
tree | 6d4d83688d945ed9b70a43c361559392f8c98362 /usr.bin/tmux/options-table.c | |
parent | e6b3f8d1d32fe473849f2aa21ecd4332c376dcad (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 'usr.bin/tmux/options-table.c')
-rw-r--r-- | usr.bin/tmux/options-table.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/tmux/options-table.c b/usr.bin/tmux/options-table.c index a45f4ea6819..80b107b2592 100644 --- a/usr.bin/tmux/options-table.c +++ b/usr.bin/tmux/options-table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options-table.c,v 1.11 2011/07/03 19:07:54 nicm Exp $ */ +/* $OpenBSD: options-table.c,v 1.12 2011/07/30 18:01:26 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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 }, |