aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vis.c b/vis.c
index 42bc0a0..96ee002 100644
--- a/vis.c
+++ b/vis.c
@@ -662,6 +662,8 @@ static const char *vis_keys_raw(Vis *vis, Buffer *buf, const char *input) {
}
for (; mode && !binding && !prefix; mode = mode->parent) {
+ if (!mode->bindings)
+ continue;
binding = map_get(mode->bindings, start);
/* "<" is never treated as a prefix because it is used to denote
* special key symbols */