Skip to content
Browse files

fix for the jobIndex counting

  • Loading branch information...
1 parent c0726e1 commit 2961ef802352c17b096a1c3b240f19cae1b73c7e @substack committed
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) {

0 comments on commit 2961ef8

Please sign in to comment.
Something went wrong with that request. Please try again.