mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-15 08:12:46 +02:00
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).
This commit is contained in:
4
status.c
4
status.c
@ -609,9 +609,9 @@ status_prompt_set(struct client *c, const char *msg,
|
||||
|
||||
keys = options_get_number(&c->session->options, "status-keys");
|
||||
if (keys == MODEKEY_EMACS)
|
||||
mode_key_init(&c->prompt_mdata, mode_key_emacs_edit);
|
||||
mode_key_init(&c->prompt_mdata, &mode_key_tree_emacs_edit);
|
||||
else
|
||||
mode_key_init(&c->prompt_mdata, mode_key_vi_edit);
|
||||
mode_key_init(&c->prompt_mdata, &mode_key_tree_vi_edit);
|
||||
|
||||
c->tty.flags |= (TTY_NOCURSOR|TTY_FREEZE);
|
||||
c->flags |= CLIENT_STATUS;
|
||||
|
Reference in New Issue
Block a user