Unverified Commit 645d3b61 authored by Richard Berger's avatar Richard Berger
Browse files

Only count new words

parent 6cb5345c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ char *TextFileReader::next_line(int nparams) {
    // strip comment
    if (ignore_comments && (ptr = strchr(line, '#'))) *ptr = '\0';

    nwords = utils::count_words(line);
    nwords += utils::count_words(&line[n]);

    // skip line if blank
    if (nwords > 0) {