pos = line;
}
- incision = txt->skip != NULL ? pos - line : -1;
+ if (txt->skip != NULL) {
+ incision = pos - line;
+ len = incision;
+ } else {
+ incision = -1;
+ }
spc = NULL;
directive = 0;
while (*pos != '\0') {
if (txt->wrapwidth != 0 && len > txt->wrapwidth &&
- txt->skip == NULL && !peeking) break;
+ !peeking) break;
if (*pos == '\r') {
*pos = '\0';
pos++;
directive = 1;
swallow = handle_directive(txt, &line, &pos,
peeking, listdir);
- len = pos - line;
spc = NULL;
if (swallow == 1) peeking = 0;
if (swallow == -1) break;
* later */
incision = pos - line;
}
+ len = incision;
} else {
if (incision != -1) {
/* Time to cut */
}
incision = -1;
}
+ len = pos - line;
}
/* handle_directive() sets up for the next
* character to process, so continue straight
} else if (peeking && txt->skip == NULL) {
break;
}
- len++;
+ if (txt->skip == NULL) len++;
pos++;
}