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). --- window-scroll.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'window-scroll.c') diff --git a/window-scroll.c b/window-scroll.c index 23ae6eca..08628de3 100644 --- a/window-scroll.c +++ b/window-scroll.c @@ -1,4 +1,4 @@ -/* $Id: window-scroll.c,v 1.36 2009-07-28 22:58:20 tcunha Exp $ */ +/* $Id: window-scroll.c,v 1.37 2009-07-28 23:11:18 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -75,9 +75,9 @@ window_scroll_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_copy); + mode_key_init(&data->mdata, &mode_key_tree_emacs_copy); else - mode_key_init(&data->mdata, mode_key_vi_copy); + mode_key_init(&data->mdata, &mode_key_tree_vi_copy); screen_write_start(&ctx, NULL, s); for (i = 0; i < screen_size_y(s); i++) -- cgit