##// END OF EJS Templates
Added checking for emptiness of cell below.
v923z -
Show More
@@ -118,7 +118,7 var IPython = (function (IPython) {
118 // Execute code cell, and insert new in place
118 // Execute code cell, and insert new in place
119 that.execute_selected_cell();
119 that.execute_selected_cell();
120 // Only insert a new cell, if we ended up in an already populated cell
120 // Only insert a new cell, if we ended up in an already populated cell
121 if (that.get_selected_cell().toJSON().input !== "") {
121 if (/\S/.test(that.get_selected_cell().toJSON().input) == true) {
122 that.insert_cell_above('code');
122 that.insert_cell_above('code');
123 }
123 }
124 return false;
124 return false;
General Comments 0
You need to be logged in to leave comments. Login now