summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/window-copy.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-07-28 07:03:33 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-07-28 07:03:33 +0000
commit91b609484f4b8d3135cdb26cb6db6f7c4cdc97fc (patch)
tree3d9cf96a6e9085b6170fa11b36c3ae156b3cb12e /usr.bin/tmux/window-copy.c
parent8ac01f5403feb01127486cf04aaa8261b2e2725e (diff)
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).
Diffstat (limited to 'usr.bin/tmux/window-copy.c')
-rw-r--r--usr.bin/tmux/window-copy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/window-copy.c b/usr.bin/tmux/window-copy.c
index 6dd71fd694c..ad6a6cbbb9d 100644
--- a/usr.bin/tmux/window-copy.c
+++ b/usr.bin/tmux/window-copy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-copy.c,v 1.11 2009/07/27 20:36:13 nicm Exp $ */
+/* $OpenBSD: window-copy.c,v 1.12 2009/07/28 07:03:32 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -108,9 +108,9 @@ window_copy_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);
s->cx = data->cx;
s->cy = data->cy;