From 26b56bc3090e9ad6ffd71f216a53805c5e894807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 7 Nov 2015 08:51:26 +0100 Subject: vis: API documentation and cleanup --- vis-modes.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'vis-modes.c') 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 */ -- cgit v1.2.3