Skip to content

Commit c6bf3e1

Browse files
authored
repl: revert fsAutoComplete change
1 parent 39eb585 commit c6bf3e1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/repl.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,10 +1411,9 @@ function complete(line, callback) {
14111411
}
14121412

14131413
ArrayPrototypePush(completionGroups, _builtinLibs, nodeSchemeBuiltinLibs);
1414-
} else if (RegExpPrototypeTest(fsAutoCompleteRE, line)) {
1415-
if (this.allowBlockingCompletions) {
1416-
({ 0: completionGroups, 1: completeOn } = completeFSFunctions(line));
1417-
}
1414+
} else if (RegExpPrototypeTest(fsAutoCompleteRE, line) &&
1415+
this.allowBlockingCompletions) {
1416+
({ 0: completionGroups, 1: completeOn } = completeFSFunctions(line));
14181417
// Handle variable member lookup.
14191418
// We support simple chained expressions like the following (no function
14201419
// calls, etc.). That is for simplicity and also because we *eval* that

0 commit comments

Comments
 (0)