remove old code.
This commit is contained in:
parent
e7e8216611
commit
9b363b47de
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue