=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/Attic/mode-key.c,v retrieving revision 1.62 retrieving revision 1.63 diff -c -r1.62 -r1.63 *** src/usr.bin/tmux/Attic/mode-key.c 2015/04/19 21:34:21 1.62 --- src/usr.bin/tmux/Attic/mode-key.c 2015/05/08 16:33:29 1.63 *************** *** 1,4 **** ! /* $OpenBSD: mode-key.c,v 1.62 2015/04/19 21:34:21 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: mode-key.c,v 1.63 2015/05/08 16:33:29 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott *************** *** 37,42 **** --- 37,56 ---- * two sets of bindings to be swapped between. A couple of editing commands * (any matching MODEKEYEDIT_SWITCHMODE*) are special-cased to do this. */ + + /* Entry in the default mode key tables. */ + struct mode_key_entry { + int key; + + /* + * Editing mode for vi: 0 is edit mode, keys not in the table are + * returned as MODEKEY_OTHER; 1 is command mode, keys not in the table + * are returned as MODEKEY_NONE. This is also matched on, allowing some + * keys to be bound in edit mode. + */ + int mode; + enum mode_key_cmd cmd; + }; /* Edit keys command strings. */ const struct mode_key_cmdstr mode_key_cmdstr_edit[] = {