fix more bracket matching breakage
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3264 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
a6eb8480ea
commit
4a2e0000f7
|
@ -761,7 +761,7 @@ void do_statusbar_find_bracket(void)
|
||||||
matchhalf += parse_mbchar(matchbrackets + matchhalf, NULL,
|
matchhalf += parse_mbchar(matchbrackets + matchhalf, NULL,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
reverse = ((ch - matchbrackets) > matchhalf);
|
reverse = ((ch - matchbrackets) >= matchhalf);
|
||||||
|
|
||||||
/* If we're on an opening bracket, set wanted_ch to the character
|
/* 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
|
* 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,
|
matchhalf += parse_mbchar(matchbrackets + matchhalf, NULL,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
reverse = ((ch - matchbrackets) > matchhalf);
|
reverse = ((ch - matchbrackets) >= matchhalf);
|
||||||
|
|
||||||
/* If we're on an opening bracket, set wanted_ch to the character
|
/* 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
|
* that's matchhalf characters after ch. If we're on a closing
|
||||||
|
|
Loading…
Reference in New Issue