Skip to content

Commit

Permalink
Prevent double tab behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
princejwesley committed Aug 3, 2016
1 parent 233ecc5 commit 4134ddd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,9 @@ function REPLServer(prompt,
case 'up': // Override previous history item
case 'down': // Override next history item
break;
case 'tab':
// prevent double tab behavior
self._previousKey = null;
default:
ttyWrite(d, key);
}
Expand Down

0 comments on commit 4134ddd

Please sign in to comment.