Commit 03c689c2 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: normalize a type, and rewrap a line

No related merge requests found
Showing with 3 additions and 4 deletions
+3 -4
......@@ -2365,7 +2365,7 @@ void edit_draw(filestruct *fileptr, const char *converted, int
} else { /* Second case: varnish is a multiline expression. */
const filestruct *start_line = fileptr->prev;
/* The first line before fileptr that matches 'start'. */
regoff_t start_col;
size_t start_col;
/* Where the match starts in that line. */
const filestruct *end_line;
/* The line that matches 'end'. */
......@@ -2437,9 +2437,8 @@ void edit_draw(filestruct *fileptr, const char *converted, int
/* No end found after this start. */
break;
start_col++;
if (regexec(varnish->start, start_line->data +
start_col, 1, &startmatch,
REG_NOTBOL) == REG_NOMATCH)
if (regexec(varnish->start, start_line->data + start_col,
1, &startmatch, REG_NOTBOL) == REG_NOMATCH)
/* No later start on this line. */
goto step_two;
}
......
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