src/Builder4/Editor.bjs
authorAlan <alan@roojs.com>
Thu, 2 Jun 2022 06:54:16 +0000 (14:54 +0800)
committerAlan <alan@roojs.com>
Thu, 2 Jun 2022 06:54:16 +0000 (14:54 +0800)
src/Builder4/Editor.vala

src/Builder4/Editor.bjs
src/Builder4/Editor.vala

index be1affa..fb9f300 100644 (file)
    ],
    "| return_type reset" : [
     "() {",
-    "",
+    "\t this.file = null;    ",
+    "    this.ptype = \"\";",
+    "    this.key  = \"\";",
+    "    this.node = null;",
+    "\tthis.searchcontext = null;",
+    "  ",
     "}",
     ""
    ],
index 36ea07c..be7ecc1 100644 (file)
@@ -169,7 +169,12 @@ public class Editor : Object
      
     }
     public return_type reset () {
-    
+        this.file = null;    
+        this.ptype = "";
+        this.key  = "";
+        this.node = null;
+       this.searchcontext = null;
+      
     }
     public void forwardSearch (bool change_focus) {