aboutsummaryrefslogtreecommitdiff
path: root/src/imv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/imv.c')
-rw-r--r--src/imv.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/imv.c b/src/imv.c
index 64c9178..868bed3 100644
--- a/src/imv.c
+++ b/src/imv.c
@@ -924,9 +924,17 @@ bool imv_load_config(struct imv *imv)
} else if(!strcmp(key, "overlay_font")) {
free(imv->font_name);
imv->font_name = strdup(value);
+ } else if(!strcmp(key, "default_binds")) {
+ const bool default_binds = parse_bool(value);
+ if(!default_binds) {
+ /* clear out any default binds if requested */
+ imv_binds_clear(imv->binds);
+ }
} else {
fprintf(stderr, "Ignoring unknown option: %s\n", key);
}
+ } else if(sect == CFG_BINDS) {
+ add_bind(imv, key, value);
}
}
} while(type);