We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 286a5d0 commit 5c7af90Copy full SHA for 5c7af90
lib/readline.js
@@ -500,9 +500,7 @@ Interface.prototype._tabComplete = function(lastKeypressWasTab) {
500
}
501
502
// If there is a common prefix to all matches, then apply that portion.
503
- var f = completions.filter(function completionFilter(e) {
504
- if (e) return e;
505
- });
+ var f = completions.filter((e) => e);
506
var prefix = commonPrefix(f);
507
if (prefix.length > completeOn.length) {
508
self._insertString(prefix.slice(completeOn.length));
0 commit comments