From 1a0d75fa2ac899397f5d7b88bbc499202590024c Mon Sep 17 00:00:00 2001 From: Vinit Pandit <106718914+MeastroZI@users.noreply.github.com> Date: Fri, 27 Dec 2024 12:44:51 +0530 Subject: [PATCH] fix: style fix Signed-off-by: Vinit Pandit <106718914+MeastroZI@users.noreply.github.com> --- lib/node_modules/@stdlib/repl/lib/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/node_modules/@stdlib/repl/lib/main.js b/lib/node_modules/@stdlib/repl/lib/main.js index 34a7f16fa3e5..79ffd6ba56a7 100644 --- a/lib/node_modules/@stdlib/repl/lib/main.js +++ b/lib/node_modules/@stdlib/repl/lib/main.js @@ -382,6 +382,7 @@ function REPL( options ) { FLG = self._editorActions.beforeKeypress( data, key ); self._eagerEvaluator.beforeKeypress( data, key ); + // If ENTER keypress is encountered or if a preview was completed while navigating, gracefully close the completer... if ( completed || ( key && key.name === 'return' ) ) { self._completerEngine.closeCompleter();