You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Avoid clashing with existing TAB completion behavior...
259
259
if(key.name==='tab'){
260
-
returnthis.clear();
260
+
this.clear();
261
+
returnfalse;
261
262
}
262
263
// Handle the case where the user is not at the end of the line...
263
264
if(this._rli.cursor!==this._rli.line.length){
264
265
// If a user is in the middle of a line and presses ENTER, clear the preview string, as the preview was not accepted prior to executing the expression...
265
266
if(key.name==='return'||key.name==='enter'){
266
267
debug('Received an ENTER keypress event while in the middle of the line.');
267
-
returnthis.clear();
268
+
this.clear();
268
269
}
269
-
return;
270
+
returnfalse;
270
271
}
271
272
// When the user is at the end of the line, auto-complete the line with the completion preview when a user presses RETURN or the RIGHT arrow key (note: pressing ENTER will result in both completion AND execution)...
0 commit comments