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
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