Fixed inverted prevnext logic.
authorDaniel Carl <danielcarl@gmx.de>
Sat, 5 Jul 2014 19:18:23 +0000 (21:18 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Sat, 5 Jul 2014 19:18:23 +0000 (21:18 +0200)
src/setting.c

index 97c3c97..9a177b0 100644 (file)
@@ -563,7 +563,7 @@ static int headers(const char *name, Type type, void *value, void *data)
 static int prevnext(const char *name, Type type, void *value, void *data)
 {
     if (validate_js_regexp_list((char*)value)) {
-        if (*name == 'p') {
+        if (*name == 'n') {
             OVERWRITE_STRING(vb.config.nextpattern, (char*)value);
         } else {
             OVERWRITE_STRING(vb.config.prevpattern, (char*)value);