Commit 4a2e0000 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

fix more bracket matching breakage

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3264 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent a6eb8480
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment