remove old code.

This commit is contained in:
Christopher Jeffrey 2013-07-04 01:51:16 -05:00
parent e7e8216611
commit 9b363b47de
1 changed files with 1 additions and 11 deletions

View File

@ -2561,17 +2561,6 @@ Textarea.prototype.type = 'textarea';
Textarea.prototype.updateCursor = function() {
if (this.screen.focused !== this) return;
/*
var clen = this._clines.length;
var last = this._clines[this._clines.length-1];
if (last.length === this.width - (this.border ? 2 : 0)) {
//if (!(this._clines.length - this.childBase >= this.height - (this.border ? 2 : 0))) {
last = '';
clen++;
}
*/
var _clines = this.value.split('\n');
var clen = _clines.length;
var last = _clines[_clines.length-1];
@ -2687,6 +2676,7 @@ Textarea.prototype.setEditor = function(callback) {
self.value = value;
self.setContent(self.value);
self._typeScroll();
self.updateCursor();
self.screen.render();
return self.setInput(callback);
});