JSDOC/TextStream.vala
[gnome.introspection-doc-generator] / JSDOC / TextStream.vala
index a68d2a7..22eff7a 100644 (file)
@@ -62,13 +62,12 @@ namespace JSDOC {
             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 "";
                     
-                    
                 }
             }