From: Daniel Carl <danielcarl@gmx.de>
Date: Sat, 5 Jul 2014 19:18:23 +0000 (+0200)
Subject: Fixed inverted prevnext logic.
X-Git-Url: https://git.owens.tech/112-editable-focus.html/112-editable-focus.html/git?a=commitdiff_plain;h=e8c7f5059d6bac6ba0bbf778a92226361527567f;p=vimb.git

Fixed inverted prevnext logic.
---

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);