From de7483a1141428a8331113fc7277d3bf67d51a13 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Tue, 28 Jul 2009 23:11:18 +0000 Subject: 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). --- status.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'status.c') diff --git a/status.c b/status.c index dc271e64..3547e593 100644 --- a/status.c +++ b/status.c @@ -1,4 +1,4 @@ -/* $Id: status.c,v 1.105 2009-07-28 22:55:59 tcunha Exp $ */ +/* $Id: status.c,v 1.106 2009-07-28 23:11:18 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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; -- cgit