mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-15 04:00:34 +08:00
Added check for index on merge_above to resolve #330
This commit is contained in:
parent
45b9caf82b
commit
7999edb5b8
@ -1496,7 +1496,9 @@ define(function (require) {
|
||||
*/
|
||||
Notebook.prototype.merge_cell_above = function () {
|
||||
var index = this.get_selected_index();
|
||||
this.merge_cells([index-1, index], true)
|
||||
if (index != 0) {
|
||||
this.merge_cells([index-1, index], true)
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user