dont set fields if in a comment
Dana Jansens danakj@orodu.net
1 files changed,
12 insertions(+),
10 deletions(-)
jump to
M
plugins/mouse/mouserc_parse.l
→
plugins/mouse/mouserc_parse.l
@@ -37,16 +37,18 @@ %%
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()