Throw up when line counting is off

openid
Marcin Kulik 13 years ago
parent 83381f220a
commit ae70863b4d

@ -24,6 +24,9 @@ SP.Terminal.prototype = {
getLine: function(n) {
n = (typeof n != "undefined" ? n : this.cursorY);
if (n >= this.lines)
throw 'cant getLine ' + n;
var line = this.lineData[n];
if (typeof line == 'undefined') {

Loading…
Cancel
Save