aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.c b/config.c
index 50fb74e6..2b7ad378 100644
--- a/config.c
+++ b/config.c
@@ -1726,6 +1726,12 @@ value_to_key_combos(struct context *ctx, int action, struct argv *argv,
}
+ if (idx == 0) {
+ LOG_CONTEXTUAL_ERR(
+ "empty binding not allowed (set to 'none' to unmap)");
+ goto err;
+ }
+
remove_from_key_bindings_list(bindings, action, argv);
bindings->arr = xrealloc(