JSDOC/TextStream.vala
authorAlan Knowles <alan@roojs.com>
Tue, 15 Sep 2015 09:31:20 +0000 (17:31 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 15 Sep 2015 09:31:20 +0000 (17:31 +0800)
JSDOC/TextStream.vala

index 22eff7a..450c379 100644 (file)
@@ -64,14 +64,14 @@ namespace JSDOC {
                 if (this.cursor+i < this.length) {
                     var add = this.text.get_char(this.cursor+i).to_string()
                     pulled += add;
-                    i += add.length();
+                    i += add.length;
                 } else {
                     return "";
                     
                 }
             }
             
-            this.cursor += n;
+            this.cursor += pulled.length;
             return pulled;
            
         }