summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/window-choose.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-07-28 07:03:33 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-07-28 07:03:33 +0000
commit91b609484f4b8d3135cdb26cb6db6f7c4cdc97fc (patch)
tree3d9cf96a6e9085b6170fa11b36c3ae156b3cb12e /usr.bin/tmux/window-choose.c
parent8ac01f5403feb01127486cf04aaa8261b2e2725e (diff)
Next step towards customisable mode keys: build each default table of keys into
a named tree on start and use that for lookups. Also add command to string translation tables and modify list-keys to show the the mode key bindings (new -t argument).
Diffstat (limited to 'usr.bin/tmux/window-choose.c')
-rw-r--r--usr.bin/tmux/window-choose.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/window-choose.c b/usr.bin/tmux/window-choose.c
index efe81dfede9..56b75d4cf4a 100644
--- a/usr.bin/tmux/window-choose.c
+++ b/usr.bin/tmux/window-choose.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-choose.c,v 1.5 2009/07/27 19:29:35 nicm Exp $ */
+/* $OpenBSD: window-choose.c,v 1.6 2009/07/28 07:03:32 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -127,9 +127,9 @@ window_choose_init(struct window_pane *wp)
keys = options_get_number(&wp->window->options, "mode-keys");
if (keys == MODEKEY_EMACS)
- mode_key_init(&data->mdata, mode_key_emacs_choice);
+ mode_key_init(&data->mdata, &mode_key_tree_emacs_choice);
else
- mode_key_init(&data->mdata, mode_key_vi_choice);
+ mode_key_init(&data->mdata, &mode_key_tree_vi_choice);
return (s);
}