mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-15 04:00:34 +08:00
Don't add explicit mark unless asked to
This commit is contained in:
parent
358508d157
commit
716a9cf0d5
@ -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();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user