Skip to content

Commit

Permalink
input: fix tab issue
Browse files Browse the repository at this point in the history
When tabbing to complete nicknames, if no completions were found, the
entire functionality of tabbing to complete nicknames would break.
  • Loading branch information
evanlucas committed Mar 31, 2016
1 parent 2ad7480 commit da88da7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/views/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@ Input.prototype.onKeydown = function onKeydown(e) {
const names = completor(this._tabOrig, t._onlyNames)
debug('names %j', names)

if (!names.length) return
if (!names.length) {
this._tabOrig = ''
return
}

if (this.isTabbing) {
// go to the next item in the list
Expand Down

0 comments on commit da88da7

Please sign in to comment.