summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mouse/mouserc_parse.l22
1 files changed, 12 insertions, 10 deletions
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()