mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
prompt '*' strore fix + tab remove tooltip
tab was not cancelling tooltip bringing to cases where you could have tooltip andcompleter open. Do not store '*' when serializing cells.
This commit is contained in:
parent
2c3f0eddb0
commit
5db9624d44
@ -202,8 +202,10 @@ var IPython = (function (IPython) {
|
||||
return true;
|
||||
} else if (event.keyCode === key.TAB && event.type == 'keydown') {
|
||||
// Tab completion.
|
||||
//Do not trim here because of tooltip
|
||||
if (editor.somethingSelected()) { return false; }
|
||||
IPython.tooltip.remove_and_cancel_tooltip();
|
||||
if (editor.somethingSelected()) {
|
||||
return false;
|
||||
}
|
||||
var pre_cursor = editor.getRange({line:cur.line,ch:0},cur);
|
||||
if (pre_cursor.trim() === "") {
|
||||
// Don't autocomplete if the part of the line before the cursor
|
||||
@ -443,7 +445,8 @@ var IPython = (function (IPython) {
|
||||
var data = IPython.Cell.prototype.toJSON.apply(this);
|
||||
data.input = this.get_text();
|
||||
data.cell_type = 'code';
|
||||
if (this.input_prompt_number) {
|
||||
// is finite protect against undefined and '*' value
|
||||
if (isFinite(this.input_prompt_number)) {
|
||||
data.prompt_number = this.input_prompt_number;
|
||||
}
|
||||
var outputs = this.output_area.toJSON();
|
||||
|
Loading…
Reference in New Issue
Block a user