From c643478ad84c4e30539c5b18d23718eccf292506 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Thu, 23 Nov 2017 21:48:55 +0000 Subject: Add default_binds option to prevent conflicts --- src/binds.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/binds.c') diff --git a/src/binds.c b/src/binds.c index 23ee43f..f1c4c65 100644 --- a/src/binds.c +++ b/src/binds.c @@ -121,6 +121,12 @@ enum bind_result imv_binds_add(struct imv_binds *binds, const struct list *keys, return result; } +void imv_binds_clear(struct imv_binds *binds) +{ + destroy_bind_node(&binds->bind_tree); + init_bind_node(&binds->bind_tree); +} + enum lookup_result { LOOKUP_PARTIAL, LOOKUP_INVALID, -- cgit v1.2.3