From 86785004baf4086816b5d6684b9d0e4c56b58ea6 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 28 Jul 2009 07:03:32 +0000 Subject: 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). --- window-choose.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'window-choose.c') diff --git a/window-choose.c b/window-choose.c index b1ae3bc5..e7d847de 100644 --- a/window-choose.c +++ b/window-choose.c @@ -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); } -- cgit