From 2f497a67ad8797e89944d484b2e156fc1d6652f3 Mon Sep 17 00:00:00 2001 From: zhangyongsheng Date: Mon, 16 Sep 2019 17:08:18 +0800 Subject: 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 Reviewed-By: Ruben Bridgewater --- lib/repl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/repl.js') 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 {} } -- cgit v1.2.3