Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix for the jobIndex counting

  • Loading branch information...
commit 2961ef802352c17b096a1c3b240f19cae1b73c7e 1 parent c0726e1
@substack authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  index.js
View
2  index.js
@@ -568,7 +568,7 @@ Bash.prototype.eval = function (line) {
Bash.prototype._jobIndex = function () {
var jobs = Object.keys(this.jobs).map(Number);
if (jobs.length === 0) return 0;
- return Math.max.apply(null, jobs);
+ return Math.max.apply(null, jobs) + 1;
};
function copy (obj) {
Please sign in to comment.
Something went wrong with that request. Please try again.