Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

readline: ignore stray escape sequence

Fixes #2876.
  • Loading branch information...
commit c84b3c4b73bb7cbd7116b5872babe7e50b45d4a6 1 parent 408f450
@Southern Southern authored bnoordhuis committed
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/readline.js
View
3  lib/readline.js
@@ -523,6 +523,9 @@ Interface.prototype._ttyWrite = function(s, key) {
var next_word, next_non_word, previous_word, previous_non_word;
key = key || {};
+ // Ignore escape key - Fixes #2876
+ if (key.name == 'escape') return;
+
if (key.ctrl && key.shift) {
/* Control and shift pressed */
switch (key.name) {
Please sign in to comment.
Something went wrong with that request. Please try again.