Sync OpenBSD patchset 192:

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 mode key bindings (new
-t argument).
This commit is contained in:
Tiago Cunha
2009-07-28 23:11:18 +00:00
parent d9dcc5ed44
commit de7483a114
10 changed files with 321 additions and 58 deletions

View File

@ -1,4 +1,4 @@
/* $Id: window-choose.c,v 1.19 2009-07-28 22:55:59 tcunha Exp $ */
/* $Id: window-choose.c,v 1.20 2009-07-28 23:11:18 tcunha 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);
}