summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbustico2006-06-01 12:07:17 +0000
committerbustico2006-06-01 12:07:17 +0000
commit7ba87263b60bbbc2f8f45215bdb3bcfa3ae20594 (patch)
treef0b24c2547a558cf1ad8768c86ec2ea62430288a /src
parent1dd0821257e53a37c3f71c56dde2c884c8a371e7 (diff)
downloadivy-c-7ba87263b60bbbc2f8f45215bdb3bcfa3ae20594.zip
ivy-c-7ba87263b60bbbc2f8f45215bdb3bcfa3ae20594.tar.gz
ivy-c-7ba87263b60bbbc2f8f45215bdb3bcfa3ae20594.tar.bz2
ivy-c-7ba87263b60bbbc2f8f45215bdb3bcfa3ae20594.tar.xz
fix bug de filtrage
Diffstat (limited to 'src')
-rw-r--r--src/Makefile2
-rw-r--r--src/ivybind.c9
2 files changed, 7 insertions, 4 deletions
diff --git a/src/Makefile b/src/Makefile
index 3b1a796..1a918f5 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -27,7 +27,7 @@ else
FPIC=-fPIC
endif
-PREFIX = /usr
+PREFIX = /usr/local
X11_PREFIX = /usr/X11R6
XTINC = -I$(X11_PREFIX)/include
diff --git a/src/ivybind.c b/src/ivybind.c
index 7c5b406..0232a31 100644
--- a/src/ivybind.c
+++ b/src/ivybind.c
@@ -210,11 +210,14 @@ int IvyBindingFilter(const char *expression)
/* extract token */
err = IvyBindingExec( token_extract, expression );
if ( err < 1 ) return 1;
- IvyBindingMatch( token_extract, expression , 0, &tokenlen, &token );
+ IvyBindingMatch( token_extract, expression , 1, &tokenlen, &token );
for ( i = 0 ; i < messages_classes_count; i++ )
{
- if (strncmp( messages_classes[i], token, tokenlen ) == 0)
- return 1;
+ if (strncmp( messages_classes[i], token, tokenlen ) == 0) {
+ return 1; }
+ // else {
+ //printf ("DBG> %s eliminé [%s]\n", token, expression);
+ //}
}
}
return regexp_ok;