From f33c283317d23f083512617e0f003fff413ffd78 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 20 Oct 2001 11:20:37 +0000 Subject: [PATCH] /BIND -delete doesn't anymore leave empty {} blocks in configuration file. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1856 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/keyboard.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fe-common/core/keyboard.c b/src/fe-common/core/keyboard.c index 93c4bcde..482f92b5 100644 --- a/src/fe-common/core/keyboard.c +++ b/src/fe-common/core/keyboard.c @@ -150,8 +150,10 @@ static void keyconfig_clear(const char *key) /* remove old keyboard settings */ node = key_config_find(key); - if (node != NULL) - iconfig_node_clear(node); + if (node != NULL) { + iconfig_node_remove(iconfig_node_traverse("(keyboard", FALSE), + node); + } } KEYINFO_REC *key_info_find(const char *id)