diff --git a/js/controlbox.js b/js/controlbox.js index 0dffb2d..3468d50 100644 --- a/js/controlbox.js +++ b/js/controlbox.js @@ -144,12 +144,12 @@ define(['d3'], function () { }, commit: function (args) { - if (args.length === 2) { + if (args.length >= 2) { var arg = args.shift(); switch (arg) { case '-m': - var mess = args[args.length - 1]; + var mess = args.join(" "); this.historyView.commit({},mess); break; default: