Don't allow edit mode up arrow to continue past index == 0

Jonathan Frederic 12 years ago
parent 8c5b32c987
commit bebe51c158

@ -162,8 +162,9 @@ var IPython = (function (IPython) {
help : '',
help_index : '',
handler : function (event) {
var index = IPython.notebook.get_selected_index();
var cell = IPython.notebook.get_selected_cell();
if (cell && cell.at_top()) {
if (index !== 0 && cell && cell.at_top()) {
event.preventDefault();
IPython.notebook.command_mode();
IPython.notebook.select_prev();

Loading…
Cancel
Save