nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 4a2e0000f7281b0e47abd5cab2ae01cb659f3652
parent a6eb8480eab4ac521e4e5e6aa97a385f0aeb8232
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Sat, 28 Jan 2006 06:04:59 +0000

fix more bracket matching breakage


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3264 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/prompt.c | 2+-
Msrc/search.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 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 @@ -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