Skip to content

Commit

Permalink
readline: refactor to move tab to its own case
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed May 24, 2015
1 parent f105fde commit b2774b3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/readline.js
Original file line number Diff line number Diff line change
Expand Up @@ -861,15 +861,15 @@ Interface.prototype._ttyWrite = function(s, key) {
this._historyNext();
break;

default:
if (key.name === 'tab') {
// If tab completion enabled, do that...
if (typeof this.completer === 'function') {
this._tabComplete();
break;
}
case 'tab':
// If tab completion enabled, do that...
if (typeof this.completer === 'function') {
this._tabComplete();
break;
}
// falls through

default:
if (s instanceof Buffer)
s = s.toString('utf-8');

Expand Down

0 comments on commit b2774b3

Please sign in to comment.