Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix to skip processing when in a command

  • Loading branch information...
commit 09a0981081b09813e2b325b85bc610f0fafa0bb9 1 parent 0202e43
@substack authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  index.js
View
3  index.js
@@ -191,6 +191,7 @@ Bash.prototype.createStream = function () {
}
return write(buf.slice(i + 1));
}
+ else if (self.current) {}
else if (c === 4) {
if (self.current) self.current.end();
else this.queue(null);
@@ -228,7 +229,7 @@ Bash.prototype.createStream = function () {
else if (c === 0x1b) {
mode = 'escape';
}
- else if (!self.current) {
+ else {
var before = line.slice(0, self._cursorX);
var after = line.slice(self._cursorX);
var middle = String.fromCharCode(c);
Please sign in to comment.
Something went wrong with that request. Please try again.