Show More
@@ -281,7 +281,7 b' var IPython = (function (IPython) {' | |||||
281 | Cell.prototype.at_top = function () { |
|
281 | Cell.prototype.at_top = function () { | |
282 | var cm = this.code_mirror; |
|
282 | var cm = this.code_mirror; | |
283 | var cursor = cm.getCursor(); |
|
283 | var cursor = cm.getCursor(); | |
284 |
if (cursor.line === 0 && c |
|
284 | if (cursor.line === 0 && cursor.ch === 0) { | |
285 | return true; |
|
285 | return true; | |
286 | } else { |
|
286 | } else { | |
287 | return false; |
|
287 | return false; | |
@@ -295,7 +295,7 b' var IPython = (function (IPython) {' | |||||
295 | Cell.prototype.at_bottom = function () { |
|
295 | Cell.prototype.at_bottom = function () { | |
296 | var cm = this.code_mirror; |
|
296 | var cm = this.code_mirror; | |
297 | var cursor = cm.getCursor(); |
|
297 | var cursor = cm.getCursor(); | |
298 |
if (cursor.line === (cm.lineCount()-1) && cm. |
|
298 | if (cursor.line === (cm.lineCount()-1) && cursor.ch === cm.getLine(cursor.line).length) { | |
299 | return true; |
|
299 | return true; | |
300 | } else { |
|
300 | } else { | |
301 | return false; |
|
301 | return false; |
General Comments 0
You need to be logged in to leave comments.
Login now