File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ TerminalInput.prototype.getCurrentAutocompleteVariant = function () {
226
226
TerminalInput . prototype . _changeAutocompleteVariant = function ( delta ) {
227
227
228
228
this . _currentAutocompleteVariant = ( this . _currentAutocompleteVariant + delta )
229
- % this . _autocompleteVariants . length ;
229
+ % this . _autocompleteVariants . length || 0 ;
230
230
if ( this . _currentAutocompleteVariant < 0 ) this . _currentAutocompleteVariant
231
231
+= this . _autocompleteVariants . length ;
232
232
this . _updateAutocompleteView ( ) ;
@@ -243,6 +243,8 @@ TerminalInput.prototype._updateAutocompleteView = function () {
243
243
244
244
var variant = this . getCurrentAutocompleteVariant ( ) ;
245
245
246
+ console . log ( variant , this . _autocompleteHint ) ;
247
+
246
248
if ( ! variant ) {
247
249
this . _autocompleteHint . hide ( ) ;
248
250
return ;
You can’t perform that action at this time.
0 commit comments