]> git.wh0rd.org Git - nano.git/commitdiff
fix more bracket matching breakage
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Sat, 28 Jan 2006 06:04:59 +0000 (06:04 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Sat, 28 Jan 2006 06:04:59 +0000 (06:04 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3264 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/prompt.c
src/search.c

index 18e41fb76904f6f428427ae7b62c2e87bcf724e2..072e618988931fe02f2f6609aac989f34f1b2768 100644 (file)
@@ -761,7 +761,7 @@ void do_statusbar_find_bracket(void)
        matchhalf += parse_mbchar(matchbrackets + matchhalf, NULL,
                NULL);
 
-    reverse = ((ch - matchbrackets) > matchhalf);
+    reverse = ((ch - matchbrackets) >= matchhalf);
 
     /* If we're on an opening bracket, set wanted_ch to the character
      * that's matchhalf characters after ch.  If we're on a closing
index beab606308453dc4ce86b6cd7fa906fbdb29e6e4..901b6cd8bc65972434cb5cc2711431d8cff841eb 100644 (file)
@@ -1183,7 +1183,7 @@ void do_find_bracket(void)
        matchhalf += parse_mbchar(matchbrackets + matchhalf, NULL,
                NULL);
 
-    reverse = ((ch - matchbrackets) > matchhalf);
+    reverse = ((ch - matchbrackets) >= matchhalf);
 
     /* If we're on an opening bracket, set wanted_ch to the character
      * that's matchhalf characters after ch.  If we're on a closing