Deselect suggestions when one is selected.

This commit is contained in:
Eddie Antonio Santos 2019-05-23 12:11:41 -06:00
parent 7588af3284
commit 805c8b3fe9
No known key found for this signature in database
GPG key ID: DD411EA4D9509D87
2 changed files with 3 additions and 1 deletions

View file

@ -190,6 +190,8 @@ async function asyncRepl(modelFile) {
// Ask for suggestions.
suggestions = await askForPredictions();
// Since we chose a selection, it's best to UNSELECT the new suggestions
selectedSuggestionIndex = null;
renderSuggestions();
} else if (keypress.name === 'backspace') {

View file

@ -1,6 +1,6 @@
{
"name": "lmlayer-cli",
"version": "0.1.0",
"version": "0.2.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {