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

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

index 74b61e0..2e5ec1c 100644 (file)
     "\t} ",
     "\t",
     "\tGtk.TextIter beg, st,en;",
-    "\t ",
+    "\tbool has_wrapped_around;",
     "\tthis.buffer.el.get_iter_at_offset(out beg, this.last_search_end);",
     "\t",
-    "\tif (!this.searchcontext.backward2(beg, out st, out en)) {",
+    "\tif (!this.searchcontext.backward2(beg, out st, out en, out has_wrapped_around)) {",
     "\t",
     "\t\tthis.last_search_end = 0;",
     "\t} else {",
index 62bbd11..39cba6d 100644 (file)
@@ -150,10 +150,10 @@ public class Editor : Object
        } 
        
        Gtk.TextIter beg, st,en;
-        
+       bool has_wrapped_around;
        this.buffer.el.get_iter_at_offset(out beg, this.last_search_end);
        
-       if (!this.searchcontext.backward2(beg, out st, out en)) {
+       if (!this.searchcontext.backward2(beg, out st, out en, out has_wrapped_around)) {
        
                this.last_search_end = 0;
        } else {