From 716a9cf0d5a8a760e0122ffec214573a06b8896f Mon Sep 17 00:00:00 2001 From: "Jessica B. Hamrick" Date: Wed, 28 Oct 2015 12:35:13 -0700 Subject: [PATCH] Don't add explicit mark unless asked to --- notebook/static/notebook/js/notebook.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/notebook/static/notebook/js/notebook.js b/notebook/static/notebook/js/notebook.js index 208b1c24d..1f0a0d939 100644 --- a/notebook/static/notebook/js/notebook.js +++ b/notebook/static/notebook/js/notebook.js @@ -719,16 +719,13 @@ define(function (require) { * @param {number} offset */ Notebook.prototype.extend_marked = function(offset) { - // Mark currently selected cell this.get_selected_cell().marked = true; - + // Select the cell in the offset direction. Bound index between 0 and // the number of cells -1. var selectedIndex = Math.min(Math.max(this.get_selected_index() + offset, 0), this.ncells()-1); this.select(selectedIndex); - this.get_selected_cell().marked = true; - this.ensure_focused(); };