From e8c7f5059d6bac6ba0bbf778a92226361527567f Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Sat, 5 Jul 2014 21:18:23 +0200 Subject: [PATCH] Fixed inverted prevnext logic. --- src/setting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/setting.c b/src/setting.c index 97c3c97..9a177b0 100644 --- a/src/setting.c +++ b/src/setting.c @@ -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); -- 2.20.1