Skip to content

Commit 24cec13

Browse files
committed
repl: preserve preview on ESCAPE key press
change according to cr
1 parent 3ede267 commit 24cec13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/repl/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,8 @@ function setupPreview(repl, contextSymbol, bufferSymbol, active) {
379379
hasCompletions = false;
380380

381381
// Add the autocompletion preview.
382-
const insertPreview = false;
383382
if (showCompletion) {
383+
const insertPreview = false;
384384
showCompletionPreview(repl.line, insertPreview);
385385
}
386386

0 commit comments

Comments
 (0)