summaryrefslogtreecommitdiffstats
path: root/mode-key.c
diff options
context:
space:
mode:
authornicm <nicm>2016-10-11 13:45:47 +0000
committernicm <nicm>2016-10-11 13:45:47 +0000
commit5c49e1d0c1afaf98512b2ffd1f31d91fecff9851 (patch)
tree7c700a3608d6de77abcdd13af8098aa47cf657ec /mode-key.c
parente45401846f0a423bb90ebd3943041a28b2657631 (diff)
Some other stuff that can be local to one file.
Diffstat (limited to 'mode-key.c')
-rw-r--r--mode-key.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mode-key.c b/mode-key.c
index 5c3c7889..32333957 100644
--- a/mode-key.c
+++ b/mode-key.c
@@ -38,6 +38,12 @@
* (any matching MODEKEYEDIT_SWITCHMODE*) are special-cased to do this.
*/
+/* Command to string mapping. */
+struct mode_key_cmdstr {
+ enum mode_key_cmd cmd;
+ const char *name;
+};
+
/* Entry in the default mode key tables. */
struct mode_key_entry {
key_code key;
@@ -304,7 +310,7 @@ static const struct mode_key_entry mode_key_emacs_choice[] = {
struct mode_key_tree mode_key_tree_emacs_choice;
/* Table mapping key table names to default settings and trees. */
-const struct mode_key_table mode_key_tables[] = {
+static const struct mode_key_table mode_key_tables[] = {
{ "vi-edit", mode_key_cmdstr_edit,
&mode_key_tree_vi_edit, mode_key_vi_edit },
{ "vi-choice", mode_key_cmdstr_choice,