From 43effede856aa087c012ed6fc60d38b73b725d1f Mon Sep 17 00:00:00 2001 From: "Jessica B. Hamrick" Date: Thu, 29 Oct 2015 11:19:34 -0700 Subject: [PATCH] Ensure consistency with when command mode is called --- notebook/static/notebook/js/notebook.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/notebook/static/notebook/js/notebook.js b/notebook/static/notebook/js/notebook.js index 4d9aca960..228bad017 100644 --- a/notebook/static/notebook/js/notebook.js +++ b/notebook/static/notebook/js/notebook.js @@ -1987,9 +1987,6 @@ define(function (require) { return; } - this.command_mode(); - this.set_dirty(true); - var cell; for (var i = 0; i < indices.length; i++) { cell = this.get_cell(indices[i]); @@ -1997,6 +1994,8 @@ define(function (require) { } this.select(indices[indices.length - 1]); + this.command_mode(); + this.set_dirty(true); }; /** @@ -2112,6 +2111,7 @@ define(function (require) { * @param {integer} end - index of the last cell to execute (exclusive) */ Notebook.prototype.execute_cell_range = function (start, end) { + this.command_mode(); var indices = []; for (var i=start; i