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