tweaks: move an assignment that is useful only when searching forward
parent
482b2814b4
commit
20d9070aa1
|
@ -868,8 +868,7 @@ void do_gotolinecolumn_void(void)
|
||||||
bool find_bracket_match(bool reverse, const char *bracket_set)
|
bool find_bracket_match(bool reverse, const char *bracket_set)
|
||||||
{
|
{
|
||||||
linestruct *line = openfile->current;
|
linestruct *line = openfile->current;
|
||||||
const char *pointer = line->data + openfile->current_x;
|
const char *pointer, *found;
|
||||||
const char *found = NULL;
|
|
||||||
|
|
||||||
/* Step away from the current bracket, either backwards or forwards. */
|
/* Step away from the current bracket, either backwards or forwards. */
|
||||||
if (reverse) {
|
if (reverse) {
|
||||||
|
@ -881,7 +880,7 @@ bool find_bracket_match(bool reverse, const char *bracket_set)
|
||||||
} else
|
} else
|
||||||
pointer = line->data + move_mbleft(line->data, openfile->current_x);
|
pointer = line->data + move_mbleft(line->data, openfile->current_x);
|
||||||
} else
|
} else
|
||||||
pointer += move_mbright(pointer, 0);
|
pointer = line->data + move_mbright(line->data, openfile->current_x);
|
||||||
|
|
||||||
/* Now seek for any of the two brackets, either backwards or forwards. */
|
/* Now seek for any of the two brackets, either backwards or forwards. */
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
|
|
Loading…
Reference in New Issue