##// END OF EJS Templates
prompt '*' strore fix + tab remove tooltip...
Matthias BUSSONNIER -
Show More
@@ -202,8 +202,10 b' var IPython = (function (IPython) {'
202 return true;
202 return true;
203 } else if (event.keyCode === key.TAB && event.type == 'keydown') {
203 } else if (event.keyCode === key.TAB && event.type == 'keydown') {
204 // Tab completion.
204 // Tab completion.
205 //Do not trim here because of tooltip
205 IPython.tooltip.remove_and_cancel_tooltip();
206 if (editor.somethingSelected()) { return false; }
206 if (editor.somethingSelected()) {
207 return false;
208 }
207 var pre_cursor = editor.getRange({line:cur.line,ch:0},cur);
209 var pre_cursor = editor.getRange({line:cur.line,ch:0},cur);
208 if (pre_cursor.trim() === "") {
210 if (pre_cursor.trim() === "") {
209 // Don't autocomplete if the part of the line before the cursor
211 // Don't autocomplete if the part of the line before the cursor
@@ -443,7 +445,8 b' var IPython = (function (IPython) {'
443 var data = IPython.Cell.prototype.toJSON.apply(this);
445 var data = IPython.Cell.prototype.toJSON.apply(this);
444 data.input = this.get_text();
446 data.input = this.get_text();
445 data.cell_type = 'code';
447 data.cell_type = 'code';
446 if (this.input_prompt_number) {
448 // is finite protect against undefined and '*' value
449 if (isFinite(this.input_prompt_number)) {
447 data.prompt_number = this.input_prompt_number;
450 data.prompt_number = this.input_prompt_number;
448 }
451 }
449 var outputs = this.output_area.toJSON();
452 var outputs = this.output_area.toJSON();
General Comments 0
You need to be logged in to leave comments. Login now