Fixed missed mode to remove keybinds.
authorDaniel Carl <danielcarl@gmx.de>
Mon, 31 Dec 2012 13:49:47 +0000 (14:49 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Mon, 31 Dec 2012 13:49:47 +0000 (14:49 +0100)
src/keybind.c

index 732c1e2..ed86337 100644 (file)
@@ -87,7 +87,7 @@ gboolean keybind_add_from_string(const gchar* str, const Mode mode)
 gboolean keybind_remove_from_string(const gchar* str, const Mode mode)
 {
     gchar* line = NULL;
-    Keybind keybind = {0};
+    Keybind keybind = {.mode = mode};
 
     if (str == NULL || *str == '\0') {
         return FALSE;