Only count new words

This commit is contained in:
Richard Berger
2020-06-11 13:49:58 -04:00
parent 6cb5345cd0
commit 645d3b61ba

View File

@ -86,7 +86,7 @@ char *TextFileReader::next_line(int nparams) {
// strip comment // strip comment
if (ignore_comments && (ptr = strchr(line, '#'))) *ptr = '\0'; if (ignore_comments && (ptr = strchr(line, '#'))) *ptr = '\0';
nwords = utils::count_words(line); nwords += utils::count_words(&line[n]);
// skip line if blank // skip line if blank
if (nwords > 0) { if (nwords > 0) {