Show More
@@ -202,8 +202,10 b' var IPython = (function (IPython) {' | |||
|
202 | 202 | return true; |
|
203 | 203 | } else if (event.keyCode === key.TAB && event.type == 'keydown') { |
|
204 | 204 | // Tab completion. |
|
205 | //Do not trim here because of tooltip | |
|
206 |
if (editor.somethingSelected()) { |
|
|
205 | IPython.tooltip.remove_and_cancel_tooltip(); | |
|
206 | if (editor.somethingSelected()) { | |
|
207 | return false; | |
|
208 | } | |
|
207 | 209 | var pre_cursor = editor.getRange({line:cur.line,ch:0},cur); |
|
208 | 210 | if (pre_cursor.trim() === "") { |
|
209 | 211 | // Don't autocomplete if the part of the line before the cursor |
@@ -443,7 +445,8 b' var IPython = (function (IPython) {' | |||
|
443 | 445 | var data = IPython.Cell.prototype.toJSON.apply(this); |
|
444 | 446 | data.input = this.get_text(); |
|
445 | 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 | 450 | data.prompt_number = this.input_prompt_number; |
|
448 | 451 | } |
|
449 | 452 | var outputs = this.output_area.toJSON(); |
General Comments 0
You need to be logged in to leave comments.
Login now