From: David Lawrence Ramsey Date: Sat, 28 Jan 2006 06:04:59 +0000 (+0000) Subject: fix more bracket matching breakage X-Git-Tag: v1.3.11~62 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4a2e0000f7281b0e47abd5cab2ae01cb659f3652;p=nano.git fix more bracket matching breakage git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3264 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/prompt.c b/src/prompt.c index 18e41fb7..072e6189 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -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 diff --git a/src/search.c b/src/search.c index beab6063..901b6cd8 100644 --- a/src/search.c +++ b/src/search.c @@ -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