summaryrefslogtreecommitdiff
path: root/lib/readline.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/readline.js')
-rw-r--r--lib/readline.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/readline.js b/lib/readline.js
index 4998b0678d..b757247e34 100644
--- a/lib/readline.js
+++ b/lib/readline.js
@@ -482,7 +482,7 @@ Interface.prototype._tabComplete = function(lastKeypressWasTab) {
maxColumns = 1;
}
var group = [];
- for (var i = 0, compLen = completions.length; i < compLen; i++) {
+ for (var i = 0; i < completions.length; i++) {
var c = completions[i];
if (c === '') {
handleGroup(self, group, width, maxColumns);
@@ -521,7 +521,7 @@ function handleGroup(self, group, width, maxColumns) {
var item = group[idx];
self._writeToOutput(item);
if (col < maxColumns - 1) {
- for (var s = 0, itemLen = item.length; s < width - itemLen; s++) {
+ for (var s = 0; s < width - item.length; s++) {
self._writeToOutput(' ');
}
}