]> Dogcows Code - chaz/openbox/commitdiff
dont set fields if in a comment
authorDana Jansens <danakj@orodu.net>
Wed, 26 Mar 2003 10:15:01 +0000 (10:15 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 26 Mar 2003 10:15:01 +0000 (10:15 +0000)
plugins/mouse/mouserc_parse.l

index c00728c189693f034a08627b5548876ccc6801fb..4b553081fd473b31fa78fd421e9189c15b2795d4 100644 (file)
@@ -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()
This page took 0.024899 seconds and 4 git commands to generate.