commit 03c689c22c681707ed414af933a62fec61c838da
parent 5270dd8b326ecebd2291a708efada72a632336a1
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Sat, 25 Jun 2016 19:59:19 +0200
tweaks: normalize a type, and rewrap a line
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/winio.c b/src/winio.c
@@ -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;
}