var i = 0;
while (i < n) {
if (this.cursor+i < this.length) {
- pulled += this.text.get_char(this.cursor+i);
- i += pulled.to_string.length();
+ var add = this.text.get_char(this.cursor+i).to_string()
+ pulled += add;
+ i += add.length();
} else {
-
return "";
-
}
}