src/Builder4/Editor.bjs
authorAlan <alan@roojs.com>
Thu, 18 Aug 2022 10:04:04 +0000 (18:04 +0800)
committerAlan <alan@roojs.com>
Thu, 18 Aug 2022 10:04:04 +0000 (18:04 +0800)
src/Builder4/Editor.vala

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

index 59ae36a..74b61e0 100644 (file)
     "\t ",
     "\tthis.buffer.el.get_iter_at_offset(out beg, this.last_search_end);",
     "\t",
-    "\tif (!this.searchcontext.back(beg, out st, out en)) {",
+    "\tif (!this.searchcontext.backward2(beg, out st, out en)) {",
     "\t",
     "\t\tthis.last_search_end = 0;",
     "\t} else {",
     "\tGtk.TextIter beg, st,en;",
     "\t ",
     "\tthis.buffer.el.get_iter_at_offset(out beg, this.last_search_end);",
-    "\tif (!this.searchcontext.forward(beg, out st, out en)) {",
+    "\tif (!this.searchcontext.forward2(beg, out st, out en)) {",
     "\t",
     "\t\tthis.last_search_end = 0;",
     "\t} else {",
index 21d9f68..62bbd11 100644 (file)
@@ -111,7 +111,7 @@ public class Editor : Object
        Gtk.TextIter beg, st,en;
         
        this.buffer.el.get_iter_at_offset(out beg, this.last_search_end);
-       if (!this.searchcontext.forward(beg, out st, out en)) {
+       if (!this.searchcontext.forward2(beg, out st, out en)) {
        
                this.last_search_end = 0;
        } else {
@@ -153,7 +153,7 @@ public class Editor : Object
         
        this.buffer.el.get_iter_at_offset(out beg, this.last_search_end);
        
-       if (!this.searchcontext.back(beg, out st, out en)) {
+       if (!this.searchcontext.backward2(beg, out st, out en)) {
        
                this.last_search_end = 0;
        } else {