We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b15f029 commit b1bc768Copy full SHA for b1bc768
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