summaryrefslogtreecommitdiff
path: root/lib/repl.js
diff options
context:
space:
mode:
authorzhangyongsheng <zhangyongsheng@youzan.com>2019-09-16 17:08:18 +0800
committerzhangyongsheng <zhangyongsheng@youzan.com>2019-09-18 09:58:59 +0800
commit2f497a67ad8797e89944d484b2e156fc1d6652f3 (patch)
tree834c6feaaab3769c6427982171e11045d723e7d6 /lib/repl.js
parent3f3ad38c878e2acdd36f724542c9aecd8b4474e9 (diff)
downloadandroid-node-v8-2f497a67ad8797e89944d484b2e156fc1d6652f3.tar.gz
android-node-v8-2f497a67ad8797e89944d484b2e156fc1d6652f3.tar.bz2
android-node-v8-2f497a67ad8797e89944d484b2e156fc1d6652f3.zip
repl: fix bug in fs module autocompletion
PR-URL: https://github.com/nodejs/node/pull/29555 Fixes: https://github.com/nodejs/node/issues/29424 Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'lib/repl.js')
-rw-r--r--lib/repl.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/repl.js b/lib/repl.js
index 0bcf0df324..4c44e2aa4d 100644
--- a/lib/repl.js
+++ b/lib/repl.js
@@ -1193,7 +1193,7 @@ function complete(line, callback) {
d.name.startsWith(baseName))
.map((d) => d.name);
completionGroups.push(filteredValue);
- completeOn = filePath;
+ completeOn = baseName;
} catch {}
}