Skip to content

Commit c68b281

Browse files
committed
prefer more concrete file name over less (fixes #1592)
1 parent 8750d44 commit c68b281

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ebusd/scan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ result_t ScanHelper::loadScanConfigFile(symbol_t address, string* relativeFile)
481481
}
482482
match += remain.length();
483483
}
484-
if (match >= bestMatch) {
484+
if (match > bestMatch || (match == bestMatch && name.length() > best.length())) {
485485
bestMatch = match;
486486
best = name;
487487
bestDefaults = defaults;

0 commit comments

Comments
 (0)