Show More
@@ -190,6 +190,15 b' var IPython = (function (IPython) {' | |||||
190 | }; |
|
190 | }; | |
191 |
|
191 | |||
192 |
|
192 | |||
|
193 | CodeCell.prototype.select_all = function () { | |||
|
194 | var start = {line: 0, ch: 0}; | |||
|
195 | var nlines = this.code_mirror.lineCount(); | |||
|
196 | var last_line = this.code_mirror.getLine(nlines-1); | |||
|
197 | var end = {line: nlines-1, ch: last_line.length}; | |||
|
198 | this.code_mirror.setSelection(start, end); | |||
|
199 | }; | |||
|
200 | ||||
|
201 | ||||
193 | CodeCell.prototype.append_output = function (json) { |
|
202 | CodeCell.prototype.append_output = function (json) { | |
194 | this.expand(); |
|
203 | this.expand(); | |
195 | if (json.output_type === 'pyout') { |
|
204 | if (json.output_type === 'pyout') { |
@@ -776,7 +776,7 b' var IPython = (function (IPython) {' | |||||
776 | cell.render(); |
|
776 | cell.render(); | |
777 | } |
|
777 | } | |
778 | if (default_options.terminal) { |
|
778 | if (default_options.terminal) { | |
779 |
cell. |
|
779 | cell.select_all(); | |
780 | } else { |
|
780 | } else { | |
781 | if ((cell_index === (that.ncells()-1)) && default_options.add_new) { |
|
781 | if ((cell_index === (that.ncells()-1)) && default_options.add_new) { | |
782 | that.insert_code_cell_below(); |
|
782 | that.insert_code_cell_below(); |
General Comments 0
You need to be logged in to leave comments.
Login now