Skip to content

Commit ad647aa

Browse files
committed
restore old comment
1 parent 19d9a0f commit ad647aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1827,7 +1827,7 @@ int freadMain(freadMainArgs _args)
18271827
bool betterLines = thisBlockLines > topNumLines && (lastncol > 1 || (singleColumnCandidate && topNumFields <= 1));
18281828
// first multi-column candidate after only single-column options so far
18291829
bool promoteOverSingle = (topNumFields <= 1 && lastncol > topNumFields && thisBlockLines >= 2);
1830-
// same number of rows as current best but more fields (legacy tie-breaker)
1830+
// more lines wins even with fewer fields, so long as number of fields >= 2
18311831
bool betterTie = (thisBlockLines == topNumLines &&
18321832
lastncol > topNumFields && // when number of lines is tied, choose the sep which separates it into more columns
18331833
(quoteRule < QUOTE_RULE_EMBEDDED_QUOTES_NOT_ESCAPED || quoteRule <= topQuoteRule) && // for test 1834 where every line contains a correctly quoted field contain sep

0 commit comments

Comments
 (0)