tweaks: step away one character from the current bracket, not one byte
parent
e92c3110a1
commit
482b2814b4
|
@ -873,14 +873,15 @@ bool find_bracket_match(bool reverse, const char *bracket_set)
|
||||||
|
|
||||||
/* Step away from the current bracket, either backwards or forwards. */
|
/* Step away from the current bracket, either backwards or forwards. */
|
||||||
if (reverse) {
|
if (reverse) {
|
||||||
if (--pointer < line->data) {
|
if (openfile->current_x == 0) {
|
||||||
line = line->prev;
|
line = line->prev;
|
||||||
if (line == NULL)
|
if (line == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
pointer = line->data + strlen(line->data);
|
pointer = line->data + strlen(line->data);
|
||||||
}
|
} else
|
||||||
|
pointer = line->data + move_mbleft(line->data, openfile->current_x);
|
||||||
} else
|
} else
|
||||||
++pointer;
|
pointer += move_mbright(pointer, 0);
|
||||||
|
|
||||||
/* 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