Permalink
Browse files

fix for the jobIndex counting

  • Loading branch information...
substack committed Nov 19, 2013
1 parent c0726e1 commit 2961ef802352c17b096a1c3b240f19cae1b73c7e
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
@@ -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.