From 03c689c22c681707ed414af933a62fec61c838da Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 25 Jun 2016 19:59:19 +0200 Subject: [PATCH] tweaks: normalize a type, and rewrap a line --- src/winio.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/winio.c b/src/winio.c index 7b509d97..8c54f0b9 100644 --- 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; }