summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2014-03-18 05:07:29 +0100
committerportix <portix@gmx.net>2014-03-18 05:07:29 +0100
commit4de0d9abe042423b5c681bd4110a7e5dc4d97e3a (patch)
tree9fd808d8642c93368d8039b27692f936b6f737fb
parent61dc3374b6c4f95c82a3f13f29d6c6bb30c9a54a (diff)
downloaddwb-4de0d9abe042423b5c681bd4110a7e5dc4d97e3a.zip
Allow comments in custom_keys
-rw-r--r--src/dwb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dwb.c b/src/dwb.c
index b209c56c..4c480d22 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -5081,6 +5081,11 @@ dwb_init_custom_keys(gboolean reload)
keybuf = g_string_new(NULL);
current_line = lines[i];
+ while (g_ascii_isspace(*current_line))
+ current_line++;
+ if (*current_line == '#')
+ continue;
+
while (*current_line && *current_line != ':')
{
if (*current_line == '\\')