From: Dana Jansens Date: Wed, 26 Mar 2003 10:15:01 +0000 (+0000) Subject: dont set fields if in a comment X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=232e0030943bd7c3b332aca8e05618558d08d297;p=chaz%2Fopenbox dont set fields if in a comment --- diff --git a/plugins/mouse/mouserc_parse.l b/plugins/mouse/mouserc_parse.l index c00728c1..4b553081 100644 --- a/plugins/mouse/mouserc_parse.l +++ b/plugins/mouse/mouserc_parse.l @@ -37,16 +37,18 @@ white [ \t]* static void gotfield() { - if (context == NULL) - context = g_strdup(mparsetext); - else if (event == NULL) - event = g_strdup(mparsetext); - else if (button == NULL) - button = g_strdup(mparsetext); - else if (action == NULL) - action = g_strdup(mparsetext); - else - error = TRUE; + if (!comment) { + if (context == NULL) + context = g_strdup(mparsetext); + else if (event == NULL) + event = g_strdup(mparsetext); + else if (button == NULL) + button = g_strdup(mparsetext); + else if (action == NULL) + action = g_strdup(mparsetext); + else + error = TRUE; + } } static void endofline()