aboutsummaryrefslogtreecommitdiff
path: root/vis-modes.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis-modes.c')
-rw-r--r--vis-modes.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/vis-modes.c b/vis-modes.c
index 7d2f7e5..b53aeb7 100644
--- a/vis-modes.c
+++ b/vis-modes.c
@@ -20,13 +20,13 @@ void mode_set(Vis *vis, Mode *new_mode) {
vis->win->ui->draw_status(vis->win->ui);
}
-static bool mode_map(Mode *mode, const char *name, KeyBinding *binding) {
- return map_put(mode->bindings, name, binding);
+static bool mode_map(Mode *mode, const char *key, KeyBinding *binding) {
+ return map_put(mode->bindings, key, binding);
}
-bool vis_mode_map(Vis *vis, enum VisMode modeid, const char *name, KeyBinding *binding) {
+bool vis_mode_map(Vis *vis, enum VisMode modeid, const char *key, KeyBinding *binding) {
Mode *mode = mode_get(vis, modeid);
- return mode && map_put(mode->bindings, name, binding);
+ return mode && mode_map(mode, key, binding);
}
bool vis_mode_bindings(Vis *vis, enum VisMode modeid, KeyBinding **bindings) {
@@ -41,9 +41,9 @@ bool vis_mode_bindings(Vis *vis, enum VisMode modeid, KeyBinding **bindings) {
return success;
}
-bool vis_mode_unmap(Vis *vis, enum VisMode modeid, const char *name) {
+bool vis_mode_unmap(Vis *vis, enum VisMode modeid, const char *key) {
Mode *mode = mode_get(vis, modeid);
- return mode && map_delete(mode->bindings, name);
+ return mode && map_delete(mode->bindings, key);
}
/** mode switching event handlers */